TSAGE: Don't allow saving in Ringworld copy protection dialog
This commit is contained in:
parent
3ba76e354a
commit
efd594993d
1 changed files with 2 additions and 3 deletions
|
@ -198,15 +198,14 @@ Scene *RingworldGame::createScene(int sceneNumber) {
|
||||||
bool RingworldGame::canLoadGameStateCurrently() {
|
bool RingworldGame::canLoadGameStateCurrently() {
|
||||||
// Don't allow a game to be loaded if a dialog is active
|
// Don't allow a game to be loaded if a dialog is active
|
||||||
return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1);
|
return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if it is currently okay to save the game
|
* Returns true if it is currently okay to save the game
|
||||||
*/
|
*/
|
||||||
bool RingworldGame::canSaveGameStateCurrently() {
|
bool RingworldGame::canSaveGameStateCurrently() {
|
||||||
// Don't allow a game to be saved if a dialog is active
|
// 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);
|
return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1) && g_globals->_sceneManager._sceneNumber != 2310;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue