Make sure we only count turns as UTurns for the turn_function
This commit is contained in:
committed by
Patrick Niklaus
parent
84b6ef4340
commit
e45d44cb8e
@@ -77,7 +77,11 @@ struct TurnInstruction
|
||||
|
||||
TurnType::Enum type : 5;
|
||||
DirectionModifier::Enum direction_modifier : 3;
|
||||
// the lane tupel that is used for the turn
|
||||
|
||||
bool IsUTurn() const
|
||||
{
|
||||
return type == TurnType::Turn && direction_modifier == DirectionModifier::UTurn;
|
||||
}
|
||||
|
||||
static TurnInstruction INVALID() { return {TurnType::Invalid, DirectionModifier::UTurn}; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user