TSAGE: Disable GMM Save/Load buttons when saving/loading not allowed

This commit is contained in:
Paul Gilbert 2011-04-17 08:37:11 +10:00
parent 8fe65b52cf
commit e9a1035f52

View File

@ -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;
}
/**