Fix:Core:Handle the possibility of the same segment being added multiple times
authortinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 21 Oct 2008 19:40:02 +0000 (19:40 +0000)
committertinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 21 Oct 2008 19:40:02 +0000 (19:40 +0000)
in route_check_straight()

git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1525 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/route.c

index d7d506a..e07ac8a 100644 (file)
@@ -1434,7 +1434,7 @@ route_check_straight(struct route_graph_segment *seg_from, struct route_graph_se
                }
                
 
-               if (curr_angle <= angle_diff) {
+               if (curr_angle < angle_diff) {
                        return 0;
                }
 
@@ -1457,7 +1457,7 @@ route_check_straight(struct route_graph_segment *seg_from, struct route_graph_se
                        curr_angle *= -1;
                }
 
-               if (curr_angle <= angle_diff) {
+               if (curr_angle < angle_diff) {
                        return 0;
                }