From: rikky Date: Tue, 15 Mar 2011 15:17:16 +0000 (+0000) Subject: Fix:core:Fixed counting of roundabout exits X-Git-Tag: navit-0.5.0.5194svn~847 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47b1d1dbddb50e394cee89a75ab01916784fa0b7;p=profile%2Fivi%2Fnavit.git Fix:core:Fixed counting of roundabout exits git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4348 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/navigation.c b/navit/navit/navigation.c index 6e66b5d..b5362c2 100644 --- a/navit/navit/navigation.c +++ b/navit/navit/navigation.c @@ -1102,7 +1102,7 @@ is_way_allowed(struct navigation *nav, struct navigation_way *way, int mode) { if (!nav->vehicleprofile) return 1; - return ((way->flags & (way->dir >= 0 ? nav->vehicleprofile->flags_forward_mask : nav->vehicleprofile->flags_reverse_mask)) == nav->vehicleprofile->flags); + return !way->flags || ((way->flags & (way->dir >= 0 ? nav->vehicleprofile->flags_forward_mask : nav->vehicleprofile->flags_reverse_mask)) == nav->vehicleprofile->flags); } /**