Enable closing map while it draws

This commit is contained in:
dawnDus 2022-01-30 15:40:59 -05:00
parent 807cc305b9
commit ff79957145
No known key found for this signature in database
GPG Key ID: 972AABDE81848F21
1 changed files with 7 additions and 0 deletions

View File

@ -131,6 +131,13 @@ impl MapSystem {
} else {
self.state = MapSystemState::Visible;
}
for player in &players {
if player.controller.trigger_jump() || player.controller.trigger_shoot() {
self.state = MapSystemState::FadeOutBox(8);
break;
}
}
}
MapSystemState::Visible => {
for player in &players {