don't ignore orient_north
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 3 Jan 2006 20:50:05 +0000 (20:50 +0000)
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 3 Jan 2006 20:50:05 +0000 (20:50 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@54 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/compass.c

index 6dd1b9c..f907ef0 100644 (file)
@@ -79,7 +79,10 @@ compass_draw(struct compass *comp, struct container *co)
        p.x=30;
        p.y=30;
        comp->gr->draw_circle(comp->gr, comp->white, &p, 50);
-       handle(comp->gr, comp->white, &p, 20, -*vehicle_dir);
+       if (co->flags->orient_north)
+               handle(comp->gr,comp->white, &p, 20,0);
+       else
+               handle(comp->gr, comp->white, &p, 20, -*vehicle_dir);
        dest=route_get_destination(co->route);
        if (dest) {
                pos=vehicle_pos_get(co->vehicle);