diff options
author | Vincent Hamm | 2007-05-16 22:44:22 +0000 |
---|---|---|
committer | Vincent Hamm | 2007-05-16 22:44:22 +0000 |
commit | 67ba6b1e4064de28b27a5979ccf88086aecdaced (patch) | |
tree | 340134789d7a00279f5ed585774366efa1689911 /engines/cruise/script.cpp | |
parent | f243227f098824a74eae078531ccf6af539dfbcb (diff) | |
download | scummvm-rg350-67ba6b1e4064de28b27a5979ccf88086aecdaced.tar.gz scummvm-rg350-67ba6b1e4064de28b27a5979ccf88086aecdaced.tar.bz2 scummvm-rg350-67ba6b1e4064de28b27a5979ccf88086aecdaced.zip |
Figured out the bug that was causing the animations to glitch
svn-id: r26856
Diffstat (limited to 'engines/cruise/script.cpp')
-rw-r--r-- | engines/cruise/script.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/cruise/script.cpp b/engines/cruise/script.cpp index 9751ce4adb..f690530a09 100644 --- a/engines/cruise/script.cpp +++ b/engines/cruise/script.cpp @@ -666,7 +666,7 @@ uint8 *attacheNewScriptToTail(int16 overlayNumber, tempPtr->sysKey = 1; } - tempPtr->var12 = 0; + tempPtr->freeze = 0; tempPtr->type = scriptType; tempPtr->var18 = arg2; tempPtr->var16 = arg1; @@ -753,8 +753,7 @@ void manageScripts(scriptInstanceStruct *scriptHandle) { if (ptr) { do { if (!overlayTable[ptr->overlayNumber].executeScripts) { - if (ptr->scriptNumber != -1 && ptr->var12 == 0 - && ptr->sysKey != 0) { + if ((ptr->scriptNumber != -1) && (ptr->freeze == 0) && (ptr->sysKey != 0)) { executeScripts(ptr); } |