diff options
author | Paul Gilbert | 2011-10-14 20:49:06 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-10-14 20:49:06 +1100 |
commit | 2ac551aa28dd0c7b339516a53135d6195ec0666f (patch) | |
tree | e3790ceade166f7d0d0a96fd1a73fbf598fef509 /engines/tsage/ringworld/ringworld_logic.cpp | |
parent | 6811a3daffc2743d2d733050be9306dcbf419214 (diff) | |
download | scummvm-rg350-2ac551aa28dd0c7b339516a53135d6195ec0666f.tar.gz scummvm-rg350-2ac551aa28dd0c7b339516a53135d6195ec0666f.tar.bz2 scummvm-rg350-2ac551aa28dd0c7b339516a53135d6195ec0666f.zip |
TSAGE: Bugfix for Ringworld demo having save/restore buttons enabled in GMM
This splits checking if save and load are enabled to the individual game classes.
Diffstat (limited to 'engines/tsage/ringworld/ringworld_logic.cpp')
-rw-r--r-- | engines/tsage/ringworld/ringworld_logic.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/tsage/ringworld/ringworld_logic.cpp b/engines/tsage/ringworld/ringworld_logic.cpp index e3b5370ae2..5254fe66d7 100644 --- a/engines/tsage/ringworld/ringworld_logic.cpp +++ b/engines/tsage/ringworld/ringworld_logic.cpp @@ -192,6 +192,20 @@ Scene *RingworldGame::createScene(int sceneNumber) { } } +/** + * Returns true if it is currently okay to restore a game + */ +bool RingworldGame::canLoadGameStateCurrently() { + return !g_globals->getFlag(50); +} + +/** + * Returns true if it is currently okay to save the game + */ +bool RingworldGame::canSaveGameStateCurrently() { + return !g_globals->getFlag(50); +} + /*--------------------------------------------------------------------------*/ DisplayHotspot::DisplayHotspot(int regionId, ...) { |