Fix:Core:Don't consider turn restrictions for maneuver generation
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 9 Jun 2011 08:29:32 +0000 (08:29 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 9 Jun 2011 08:29:32 +0000 (08:29 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4520 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navigation.c

index fab95a5..ff103a5 100644 (file)
@@ -646,6 +646,9 @@ navigation_itm_ways_update(struct navigation_itm *itm, struct map *graph_map)
                }
 
                sitem = sitem_attr.u.item;
+               if (sitem->type == type_street_turn_restriction_no || sitem->type == type_street_turn_restriction_only)
+                       continue;
+
                if (item_is_equal(itm->way.item,*sitem) || ((itm->prev) && item_is_equal(itm->prev->way.item,*sitem))) {
                        continue;
                }