Swap secondary and primary turns if the secondary turn is actually the turn being made.
This commit is contained in:
parent
3ef0a4f9a8
commit
88156c0370
1 changed files with 7 additions and 1 deletions
|
@ -661,7 +661,13 @@ public class RouteResultPreparation {
|
|||
if (TurnType.getPrimaryTurn(t.getLanes()[i]) == 0) {
|
||||
t.setPrimaryTurn(i, turn);
|
||||
} else {
|
||||
t.setSecondaryTurn(i, turn);
|
||||
if (turn == t.getValue()) {
|
||||
t.setSecondaryTurn(i, TurnType.getPrimaryTurn(t.getLanes()[i]));
|
||||
t.setPrimaryTurn(i, turn);
|
||||
} else {
|
||||
t.setSecondaryTurn(i, turn);
|
||||
}
|
||||
|
||||
break; // Move on to the next lane
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue