TSAGE: Don't allow saving in Ringworld copy protection dialog

This commit is contained in:
Paul Gilbert 2018-08-21 19:24:25 -07:00
parent 3ba76e354a
commit efd594993d

View File

@ -198,15 +198,14 @@ Scene *RingworldGame::createScene(int sceneNumber) {
bool RingworldGame::canLoadGameStateCurrently() {
// 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() {
// Don't allow a game to be saved if a dialog is active
return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1);
// Don't allow a game to be saved if a dialog is active, or the copy protection dialog
return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1) && g_globals->_sceneManager._sceneNumber != 2310;
}
/*--------------------------------------------------------------------------*/