If adding a left/right turn to a lane, make sure that that lane is marked as selected.

This commit is contained in:
Saikrishna Arcot 2015-05-26 19:56:31 -07:00
parent 09ec6bb630
commit 52f277b3f0
No known key found for this signature in database
GPG key ID: 203B47C2C66B784B

View file

@ -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);