fix: avoids being able to pause during transitions; also moves pausing request responsibility to UI; also fixes issue w/ trying to pause during intro and main menu

This commit is contained in:
Duncan Brown authored and Julian Murgia committed 2022-05-11 19:18:05 +02:00
1 parent ff178541fc
commit aeffe09e34
5 files changed
+22 -7

No files matched your search

+1 -1
View File
@@ -336,7 +336,7 @@ func unpause_game():
escoria.set_game_paused(false)
func pause_game():
if not get_node(pause_menu).visible:
if not get_node(pause_menu).visible and not get_node(main_menu).visible:
get_node(pause_menu).reset()
get_node(pause_menu).set_save_enabled(escoria.save_manager.save_enabled)
get_node(pause_menu).show()