Remove repeated sub-expression for TurnType::Suppressed test
This commit is contained in:
parent
2508629d6c
commit
302390696e
@ -86,8 +86,7 @@ bool isValidMatch(const TurnLaneType::Mask tag, const TurnInstruction instructio
|
|||||||
(instruction.type ==
|
(instruction.type ==
|
||||||
TurnType::Continue && // Forks can be experienced, even for straight segments
|
TurnType::Continue && // Forks can be experienced, even for straight segments
|
||||||
(instruction.direction_modifier == DirectionModifier::SlightLeft ||
|
(instruction.direction_modifier == DirectionModifier::SlightLeft ||
|
||||||
instruction.direction_modifier == DirectionModifier::SlightRight)) ||
|
instruction.direction_modifier == DirectionModifier::SlightRight));
|
||||||
instruction.type == TurnType::Suppressed;
|
|
||||||
}
|
}
|
||||||
else if (tag == TurnLaneType::slight_left || tag == TurnLaneType::left ||
|
else if (tag == TurnLaneType::slight_left || tag == TurnLaneType::left ||
|
||||||
tag == TurnLaneType::sharp_left)
|
tag == TurnLaneType::sharp_left)
|
||||||
|
Loading…
Reference in New Issue
Block a user