CRUISE: Simplify endgame saving fix

This commit is contained in:
Paul Gilbert 2021-08-28 20:06:40 -07:00
parent f30705ae45
commit 91f9742d00
3 changed files with 2 additions and 5 deletions

View File

@ -90,9 +90,8 @@ int loadBackground(const char *name, int idx) {
debug(1, "Loading BG: %s", name);
// WORKAROUND: Don't allow save/loading during endgame
// WORKAROUND: Don't allow saving during endgame
if (!strcmp(name, "DGF1.PI1")) {
_vm->_isEndGame = true;
userEnabled = false;
}

View File

@ -55,7 +55,6 @@ CruiseEngine::CruiseEngine(OSystem * syst, const CRUISEGameDescription *gameDesc
_speedFlag = false;
_polyStructs = nullptr;
_polyStruct = nullptr;
_isEndGame = false;
// Setup mixer
syncSoundSettings();
@ -211,7 +210,7 @@ Common::Error CruiseEngine::saveGameState(int slot, const Common::String &desc,
}
bool CruiseEngine::canSaveGameStateCurrently() {
return (playerMenuEnabled != 0) && (userEnabled != 0) && !_isEndGame;
return (playerMenuEnabled != 0) && (userEnabled != 0);
}
const char *CruiseEngine::getSavegameFile(int saveGameIdx) {

View File

@ -103,7 +103,6 @@ public:
void initAllData();
Common::RandomSource _rnd;
bool _isEndGame;
struct MemInfo {
int32 lineNum;