aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-12-29 17:26:56 +0000
committerTorbjörn Andersson2003-12-29 17:26:56 +0000
commit40419b1aeed7f3f51b2e24911bf8c30562e349ae (patch)
tree1c569f59bd696fef9f75c05c5ac5fca04919b25b /sword2
parentdf1ba69e4ff3870c5a50b7fca93e9655157ca7f1 (diff)
downloadscummvm-rg350-40419b1aeed7f3f51b2e24911bf8c30562e349ae.tar.gz
scummvm-rg350-40419b1aeed7f3f51b2e24911bf8c30562e349ae.tar.bz2
scummvm-rg350-40419b1aeed7f3f51b2e24911bf8c30562e349ae.zip
tiny cleanup
svn-id: r12017
Diffstat (limited to 'sword2')
-rw-r--r--sword2/interpreter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sword2/interpreter.cpp b/sword2/interpreter.cpp
index 91e64cced7..27df190a49 100644
--- a/sword2/interpreter.cpp
+++ b/sword2/interpreter.cpp
@@ -205,8 +205,6 @@ int Logic::runScript(char *scriptData, char *objectData, uint32 *offset) {
int32 stack[STACK_SIZE];
int32 stackPtr = 0;
- bool checkPyramidBug = false;
-
StandardHeader *header = (StandardHeader *) scriptData;
scriptData += sizeof(StandardHeader) + sizeof(ObjectHub);
@@ -264,7 +262,7 @@ int Logic::runScript(char *scriptData, char *objectData, uint32 *offset) {
// So if his click hander (action script number 2) finishes, and
// variable 913 is 1, we set it back to 0 manually.
- checkPyramidBug = strcmp((char *) header->name, "titipoco_81") == 0 && scriptNumber == 2;
+ bool checkPyramidBug = scriptNumber == 2 && strcmp((char *) header->name, "titipoco_81") == 0;
code += noScripts * sizeof(int32);