Make so that the resume button doesn't eject the mouse

This commit is contained in:
Capucho 2020-03-30 22:00:46 +01:00
parent 2024718ad1
commit 3f1f9b9ab0

View File

@ -1948,8 +1948,8 @@ impl Hud {
},
Some(esc_menu::Event::Close) => {
self.show.esc_menu = false;
self.show.want_grab = false;
self.force_ungrab = true;
self.show.want_grab = true;
self.force_ungrab = false;
// Unpause the game if we are on singleplayer
if let Some(singleplayer) = global_state.singleplayer.as_ref() {