From 67ba6b1e4064de28b27a5979ccf88086aecdaced Mon Sep 17 00:00:00 2001 From: Vincent Hamm Date: Wed, 16 May 2007 22:44:22 +0000 Subject: Figured out the bug that was causing the animations to glitch svn-id: r26856 --- engines/cruise/script.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/cruise/script.cpp') 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); } -- cgit v1.2.3