diff options
author | Paul Gilbert | 2011-12-17 13:13:44 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-12-17 13:13:44 +1100 |
commit | 24740b30bd9d6cfd5ce420951a53b87a156ffbbf (patch) | |
tree | a625acf235a9ad3c0cddaabe7c69414d5e856e30 /engines/tsage/ringworld/ringworld_logic.cpp | |
parent | 114e857d78536d5a19d2b37855d67522d5b00e6e (diff) | |
download | scummvm-rg350-24740b30bd9d6cfd5ce420951a53b87a156ffbbf.tar.gz scummvm-rg350-24740b30bd9d6cfd5ce420951a53b87a156ffbbf.tar.bz2 scummvm-rg350-24740b30bd9d6cfd5ce420951a53b87a156ffbbf.zip |
TSAGE: Disallow saving and loading via the GMM when a dialog is active
Diffstat (limited to 'engines/tsage/ringworld/ringworld_logic.cpp')
-rw-r--r-- | engines/tsage/ringworld/ringworld_logic.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/tsage/ringworld/ringworld_logic.cpp b/engines/tsage/ringworld/ringworld_logic.cpp index ad67b66f69..c87b95e0b8 100644 --- a/engines/tsage/ringworld/ringworld_logic.cpp +++ b/engines/tsage/ringworld/ringworld_logic.cpp @@ -196,14 +196,17 @@ Scene *RingworldGame::createScene(int sceneNumber) { * Returns true if it is currently okay to restore a game */ bool RingworldGame::canLoadGameStateCurrently() { - return !g_globals->getFlag(50); + // Don't allow a game to be loaded if a dialog is active + return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1); + } /** * Returns true if it is currently okay to save the game */ bool RingworldGame::canSaveGameStateCurrently() { - return !g_globals->getFlag(50); + // Don't allow a game to be saved if a dialog is active + return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1); } /*--------------------------------------------------------------------------*/ |