Merge pull request #8961 from osmandapp/fix_8656

Fix_8656
This commit is contained in:
vshcherb 2020-05-14 13:45:52 +02:00 committed by GitHub
commit 5eacba063a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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