Merge pull request #1277 from saiarcot895/fix-right-turn-highlighting
If adding a left/right turn to a lane, make sure that that lane is ma…
This commit is contained in:
commit
4e6b3724ad
1 changed files with 2 additions and 0 deletions
|
@ -652,12 +652,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