Update TurnPathHelper.java

This commit is contained in:
vshcherb 2020-05-14 13:45:43 +02:00 committed by GitHub
parent 195b83640d
commit 6c1896c7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -609,7 +609,7 @@ public class TurnPathHelper {
} else if (firstTurnType != TurnType.C && TurnType.isSlightTurn(firstTurnType)
&& !TurnType.isSlightTurn(secondTurnType) && !TurnType.isSlightTurn(thirdTurnType)) {
if (TurnType.isLeftTurn(firstTurnType) && TurnType.isRightTurn(secondTurnType)
&& (thirdTurnType == 0 | TurnType.isLeftTurn(thirdTurnType))) {
&& (thirdTurnType == 0 || TurnType.isLeftTurn(thirdTurnType))) {
turnResource = new TurnResource(secondTurnType, true, false, leftSide);
} else if (TurnType.isRightTurn(firstTurnType) && TurnType.isLeftTurn(secondTurnType)
&& (thirdTurnType == 0 || TurnType.isRightTurn(thirdTurnType))) {