aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-04-17 08:37:11 +1000
committerPaul Gilbert2011-04-17 08:38:45 +1000
commite9a1035f521a8a0acb024706306d748cbc7a0f04 (patch)
treebe43412725b02d9f0fd4c1e51d7df514f5ee7da2 /engines
parent8fe65b52cf770ab9b503b1ee38dc789d06b82edb (diff)
downloadscummvm-rg350-e9a1035f521a8a0acb024706306d748cbc7a0f04.tar.gz
scummvm-rg350-e9a1035f521a8a0acb024706306d748cbc7a0f04.tar.bz2
scummvm-rg350-e9a1035f521a8a0acb024706306d748cbc7a0f04.zip
TSAGE: Disable GMM Save/Load buttons when saving/loading not allowed
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/tsage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/tsage.cpp b/engines/tsage/tsage.cpp
index 1f6442f2ff..9d5d7223cb 100644
--- a/engines/tsage/tsage.cpp
+++ b/engines/tsage/tsage.cpp
@@ -101,14 +101,14 @@ Common::Error TSageEngine::run() {
* Returns true if it is currently okay to restore a game
*/
bool TSageEngine::canLoadGameStateCurrently() {
- return _globals->getFlag(50) == 0;
+ return (_globals->getFlag(50) == 0) && _globals->_player._uiEnabled;
}
/**
* Returns true if it is currently okay to save the game
*/
bool TSageEngine::canSaveGameStateCurrently() {
- return _globals->getFlag(50) == 0;
+ return (_globals->getFlag(50) == 0) && _globals->_player._uiEnabled;
}
/**