Fix slight turn definition, and remove redundant lines
This commit is contained in:
parent
cefabcf520
commit
d527eb4fe9
2 changed files with 1 additions and 4 deletions
|
@ -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]));
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue