If adding a left/right turn to a lane, make sure that that lane is marked as selected.
This commit is contained in:
parent
09ec6bb630
commit
52f277b3f0
1 changed files with 2 additions and 0 deletions
|
@ -638,12 +638,14 @@ public class RouteResultPreparation {
|
|||
// This was just to make sure that there's no bad data.
|
||||
TurnType.setPrimaryTurnAndReset(lanesArray, ind, TurnType.TL);
|
||||
TurnType.setSecondaryTurn(lanesArray, ind, tt);
|
||||
lanesArray[ind] |= 1;
|
||||
}
|
||||
} else {
|
||||
if (!TurnType.isRightTurn(tt)) {
|
||||
// This was just to make sure that there's no bad data.
|
||||
TurnType.setPrimaryTurnAndReset(lanesArray, ind, TurnType.TR);
|
||||
TurnType.setSecondaryTurn(lanesArray, ind, tt);
|
||||
lanesArray[ind] |= 1;
|
||||
}
|
||||
}
|
||||
setAllowedLanes(tt, lanesArray);
|
||||
|
|
Loading…
Reference in a new issue