mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
CRUISE: Simplify endgame saving fix
This commit is contained in:
parent
f30705ae45
commit
91f9742d00
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -103,7 +103,6 @@ public:
|
||||
void initAllData();
|
||||
|
||||
Common::RandomSource _rnd;
|
||||
bool _isEndGame;
|
||||
|
||||
struct MemInfo {
|
||||
int32 lineNum;
|
||||
|
Loading…
x
Reference in New Issue
Block a user