turn arrows fix #6416
This commit is contained in:
parent
c3e16c9986
commit
fdd143d2ff
1 changed files with 6 additions and 1 deletions
|
@ -578,7 +578,8 @@ public class TurnPathHelper {
|
||||||
if (turnIndex == FIRST_TURN) {
|
if (turnIndex == FIRST_TURN) {
|
||||||
if (secondTurnType == 0) {
|
if (secondTurnType == 0) {
|
||||||
turnResource = new TurnResource(firstTurnType, false, false, leftSide);
|
turnResource = new TurnResource(firstTurnType, false, false, leftSide);
|
||||||
} else if (secondTurnType == TurnType.C || thirdTurnType == TurnType.C) {
|
} else if (secondTurnType == TurnType.C || thirdTurnType == TurnType.C
|
||||||
|
|| secondTurnType == TurnType.TSLL || secondTurnType == TurnType.TSLR) {
|
||||||
turnResource = new TurnResource(firstTurnType, true, false, leftSide);
|
turnResource = new TurnResource(firstTurnType, true, false, leftSide);
|
||||||
} else {
|
} else {
|
||||||
if (firstTurnType == TurnType.TU || firstTurnType == TurnType.TRU) {
|
if (firstTurnType == TurnType.TU || firstTurnType == TurnType.TRU) {
|
||||||
|
@ -591,12 +592,16 @@ public class TurnPathHelper {
|
||||||
if (TurnType.isLeftTurn(firstTurnType) && TurnType.isLeftTurn(secondTurnType)) {
|
if (TurnType.isLeftTurn(firstTurnType) && TurnType.isLeftTurn(secondTurnType)) {
|
||||||
if (TurnType.isSlightTurn(firstTurnType)) {
|
if (TurnType.isSlightTurn(firstTurnType)) {
|
||||||
turnResource = new TurnResource(secondTurnType, true, false, leftSide);
|
turnResource = new TurnResource(secondTurnType, true, false, leftSide);
|
||||||
|
} else if (TurnType.isSlightTurn(secondTurnType)) {
|
||||||
|
turnResource = new TurnResource(secondTurnType, false, false, leftSide);
|
||||||
} else {
|
} else {
|
||||||
turnResource = null;
|
turnResource = null;
|
||||||
}
|
}
|
||||||
} else if (TurnType.isRightTurn(firstTurnType) && TurnType.isRightTurn(secondTurnType)) {
|
} else if (TurnType.isRightTurn(firstTurnType) && TurnType.isRightTurn(secondTurnType)) {
|
||||||
if (TurnType.isSlightTurn(firstTurnType)) {
|
if (TurnType.isSlightTurn(firstTurnType)) {
|
||||||
turnResource = new TurnResource(secondTurnType, true, false, leftSide);
|
turnResource = new TurnResource(secondTurnType, true, false, leftSide);
|
||||||
|
} else if (TurnType.isSlightTurn(secondTurnType)) {
|
||||||
|
turnResource = new TurnResource(secondTurnType, false, false, leftSide);
|
||||||
} else {
|
} else {
|
||||||
turnResource = null;
|
turnResource = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue