(93669eac9) Fix cannot close pause menu by pressing esc.

This commit is contained in:
Joonas Rikkonen
2019-03-29 17:23:19 +02:00
parent ce2131df42
commit ce359f5309
2 changed files with 5 additions and 5 deletions
@@ -601,7 +601,7 @@ namespace Barotrauma
{
((GUIMessageBox)GUIMessageBox.VisibleBox).Close();
}
else if (GUI.MouseOn == null && Inventory.SelectedSlot == null && CharacterHealth.OpenHealthWindow == null)
else if ((GUI.MouseOn == null || GUI.IsMouseOn(GUI.PauseMenu)) && Inventory.SelectedSlot == null && CharacterHealth.OpenHealthWindow == null)
{
// Otherwise toggle pausing, unless another window/interface is open.
GUI.TogglePauseMenu();