diff options
author | Paul Gilbert | 2018-03-21 21:05:33 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-21 21:05:33 -0400 |
commit | 001f2434c6c09a2121fc60f5fa4bd54f6303d75f (patch) | |
tree | cd549b041cf11bbbd9bb73c54c3e5e026c6fb2bd /engines/xeen/dialogs | |
parent | a86a4e02863823da44961a9c0708eef1cdfd9f42 (diff) | |
download | scummvm-rg350-001f2434c6c09a2121fc60f5fa4bd54f6303d75f.tar.gz scummvm-rg350-001f2434c6c09a2121fc60f5fa4bd54f6303d75f.tar.bz2 scummvm-rg350-001f2434c6c09a2121fc60f5fa4bd54f6303d75f.zip |
XEEN: Don't allow GMM load/save on the main menus or intro/end cutscenes
Diffstat (limited to 'engines/xeen/dialogs')
-rw-r--r-- | engines/xeen/dialogs/dialogs_control_panel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/xeen/dialogs/dialogs_control_panel.cpp b/engines/xeen/dialogs/dialogs_control_panel.cpp index 177c7785f8..17c86ad5e3 100644 --- a/engines/xeen/dialogs/dialogs_control_panel.cpp +++ b/engines/xeen/dialogs/dialogs_control_panel.cpp @@ -169,9 +169,11 @@ int ControlPanel::execute() { intf.drawParty(true); if (result == 3) { - saves.loadGame(); + if (g_vm->canLoadGameStateCurrently()) + saves.loadGame(); } else if (result == 4) { - saves.saveGame(); + if (g_vm->canSaveGameStateCurrently()) + saves.saveGame(); } return result; |