From 3949c6b3229c0d30391b2bf8de3c42e3c95e7af5 Mon Sep 17 00:00:00 2001 From: tinloaf Date: Tue, 16 Dec 2008 02:25:17 +0000 Subject: [PATCH] Fix:Core:Fixing two bugs in the changed "ways" code. Hope I got them all... git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1801 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/navigation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/navit/navit/navigation.c b/navit/navit/navigation.c index 5aa6c6c..3cd9e3b 100644 --- a/navit/navit/navigation.c +++ b/navit/navit/navigation.c @@ -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 { -- 2.7.4