Permalink
Browse files

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

  • Loading branch information...
dreammaster committed Aug 22, 2018
1 parent 3ba76e3 commit efd594993d7903185d3d20738a9f875e543b3328
Showing with 2 additions and 3 deletions.
  1. +2 −3 engines/tsage/ringworld/ringworld_logic.cpp
@@ -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;
}

/*--------------------------------------------------------------------------*/

0 comments on commit efd5949

Please sign in to comment.