1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-09-28 13:09:07 +00:00

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

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 {