diff options
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 1ab4d50d3d..441150bc9c 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -2082,6 +2082,20 @@ void ScummEngine::scummLoop_handleSaveLoad() { } } +void ScummEngine_v5::scummLoop_handleSaveLoad() { + byte saveLoad = (_saveLoadFlag != 0); + + ScummEngine::scummLoop_handleSaveLoad(); + + // update IQ points after loading + if (saveLoad == 2) { + if (_game.id == GID_INDY3) + updateIQPoints(); + if (_game.id == GID_INDY4) + runScript(145, 0, 0, 0); + } +} + #ifdef ENABLE_SCUMM_7_8 void ScummEngine_v8::scummLoop_handleSaveLoad() { ScummEngine::scummLoop_handleSaveLoad(); |