Fix:Core:Correctly rest blocked flags
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 8 Jul 2010 17:04:00 +0000 (17:04 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 8 Jul 2010 17:04:00 +0000 (17:04 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3488 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index 54e3c77..c1c3b5d 100644 (file)
@@ -2329,11 +2329,12 @@ navit_block(struct navit *this_, int block)
                        this_->blocked |= 2;
                return 0;
        }
-       this_->blocked=0;
        if ((this_->blocked & 2) || block < 0) {
+               this_->blocked=0;
                navit_draw(this_);
                return 1;
        }
+       this_->blocked=0;
        return 0;
 }