use orient_north for destination arrow, too
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 4 Jan 2006 11:56:01 +0000 (11:56 +0000)
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 4 Jan 2006 11:56:01 +0000 (11:56 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@59 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/compass.c

index f907ef0..4daa430 100644 (file)
@@ -92,7 +92,8 @@ compass_draw(struct compass *comp, struct container *co)
 #if 0
                printf("dx %d dy %d dir=%f vehicle_dir=%f\n", dx, dy, dir, *vehicle_dir);
 #endif
-               dir-=*vehicle_dir;
+               if (! co->flags->orient_north)
+                       dir-=*vehicle_dir;
                handle(comp->gr, comp->green, &p, 20, dir);
                p.x=8;
                p.y=72;