diff options
author | Ralph Brorsen | 2002-08-25 11:35:13 +0000 |
---|---|---|
committer | Ralph Brorsen | 2002-08-25 11:35:13 +0000 |
commit | d473d295c4513db29ddefeed321d5c4ee48b6195 (patch) | |
tree | be551c6bba565a8036f9a94c40390d6deab7983b /scumm/script.cpp | |
parent | fe53d3ecc2226082561eadbe288d2c8dcdd98e65 (diff) | |
download | scummvm-rg350-d473d295c4513db29ddefeed321d5c4ee48b6195.tar.gz scummvm-rg350-d473d295c4513db29ddefeed321d5c4ee48b6195.tar.bz2 scummvm-rg350-d473d295c4513db29ddefeed321d5c4ee48b6195.zip |
Fix for #556564
svn-id: r4846
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index f46bd4bb24..d5fd2458d3 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -70,6 +70,7 @@ void Scumm::runScript(int script, int a, int b, int16 *lvarptr) s->unk1 = a; s->unk2 = b; s->freezeCount = 0; + s->delayFrameCount = 0; initializeLocals(slot, lvarptr); @@ -620,6 +621,7 @@ void Scumm::runExitScript() vm.slot[slot].unk1 = 0; vm.slot[slot].unk2 = 0; vm.slot[slot].freezeCount = 0; + vm.slot[slot].delayFrameCount = 0; runScriptNested(slot); } if (_vars[VAR_EXIT_SCRIPT2]) @@ -639,6 +641,7 @@ void Scumm::runEntryScript() vm.slot[slot].unk1 = 0; vm.slot[slot].unk2 = 0; vm.slot[slot].freezeCount = 0; + vm.slot[slot].delayFrameCount = 0; runScriptNested(slot); } if (_vars[VAR_ENTRY_SCRIPT2]) @@ -770,7 +773,7 @@ void Scumm::runVerbCode(int object, int entry, int a, int b, int16 *vars) vm.slot[slot].unk1 = a; vm.slot[slot].unk2 = b; vm.slot[slot].freezeCount = 0; - vm.slot[slot].newfield = 0; + vm.slot[slot].delayFrameCount = 0; initializeLocals(slot, vars); |