Fix:Core:Fixing two bugs in the changed "ways" code. Hope I got them all...
authortinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 16 Dec 2008 02:25:17 +0000 (02:25 +0000)
committertinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 16 Dec 2008 02:25:17 +0000 (02:25 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1801 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navigation.c

index 5aa6c6c..3cd9e3b 100644 (file)
@@ -501,7 +501,7 @@ navigation_itm_new(struct navigation *this_, struct item *ritem)
                this_->last->next=ret;
                ret->prev=this_->last;
                if (graph_map) {
-                       navigation_itm_ways_update(this_->last,graph_map);
+                       navigation_itm_ways_update(ret,graph_map);
                }
        }
        dbg(1,"ret=%p\n", ret);
@@ -651,7 +651,7 @@ entering_straight(struct navigation_itm *new, int delta2)
 
        w = new->ways;
        while (w) {
-               delta=w->angle2-new->angle_start;
+               delta=w->angle2-new->prev->angle_end;
                if (delta < 0) {
                        curr_diff = delta * -1;
                } else {