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:
vshcherb 2015-08-02 21:06:44 +02:00
commit 4e6b3724ad

View file

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