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/function.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/function.cpp')
-rw-r--r-- | engines/cruise/function.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index 5971d191fa..73e1bd9084 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -102,10 +102,7 @@ int16 Op_startScript(void) { ovlIdx = currentScriptPtr->overlayNumber; } - ptr = - attacheNewScriptToTail(ovlIdx, &procHead, scriptIdx, - currentScriptPtr->type, currentScriptPtr->scriptNumber, - currentScriptPtr->overlayNumber, scriptType_MinusPROC); + ptr = attacheNewScriptToTail(ovlIdx, &procHead, scriptIdx, currentScriptPtr->type, currentScriptPtr->scriptNumber, currentScriptPtr->overlayNumber, scriptType_MinusPROC); if (!ptr) return (0); @@ -194,7 +191,7 @@ int16 Op_rand(void) { // TODO: implement if (var < 2) { return (0); } -// return(8); + return (rand() % var); } @@ -797,7 +794,7 @@ int16 Op_66(void) { getMultipleObjectParam(overlay, index, ¶ms); - return params.var7; + return params.var7 - 1; } int16 Op_SetActiveBackgroundPlane(void) { |