Fix slight turn definition, and remove redundant lines

This commit is contained in:
Saikrishna Arcot 2014-12-04 22:51:18 -05:00
parent cefabcf520
commit d527eb4fe9
2 changed files with 1 additions and 4 deletions

View file

@ -703,9 +703,6 @@ public class RouteResultPreparation {
// When going straight, the lanes have to be calculated from the previous segment, not the current/next segment. // When going straight, the lanes have to be calculated from the previous segment, not the current/next segment.
int prevLanes = countLanesMinOne(prevSegm); int prevLanes = countLanesMinOne(prevSegm);
if (prevLanes <= 0) {
prevLanes = 1;
}
t.setLanes(attachTurnLanesData(prevSegm, new int[prevLanes])); t.setLanes(attachTurnLanesData(prevSegm, new int[prevLanes]));

View file

@ -255,6 +255,6 @@ public class TurnType {
} }
public static boolean isSlightTurn(int type) { public static boolean isSlightTurn(int type) {
return !isLeftTurn(type) && !isRightTurn(type) && type != TU && type != TRU && type != OFFR; return type == TSLL || type == TSLR || type == C || type == KL || type == KR;
} }
} }