mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-01 19:27:11 +03:00
fix turn cycler plugin overriding others
This commit is contained in:
parent
0048f90734
commit
8c7e89702f
@ -57,7 +57,8 @@ impl TurnCyclerState {
|
||||
}
|
||||
match self {
|
||||
TurnCyclerState::Inactive => false,
|
||||
TurnCyclerState::Active(_, _) => true,
|
||||
// Only once they start tabbing through turns does this plugin block other input.
|
||||
TurnCyclerState::Active(_, current_turn_index) => current_turn_index.is_some(),
|
||||
TurnCyclerState::Intersection(_) => false,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user