aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula/drascula.cpp
diff options
context:
space:
mode:
authorMax Horn2010-03-09 23:35:56 +0000
committerMax Horn2010-03-09 23:35:56 +0000
commitc6f752ce30c6b13cc46990e507c2db443558c35a (patch)
tree29833c016ded9d8bd526f63d589c4770e2e6c7a3 /engines/drascula/drascula.cpp
parentda81c58af12467d3138caf8ee1664d7bbf290d60 (diff)
downloadscummvm-rg350-c6f752ce30c6b13cc46990e507c2db443558c35a.tar.gz
scummvm-rg350-c6f752ce30c6b13cc46990e507c2db443558c35a.tar.bz2
scummvm-rg350-c6f752ce30c6b13cc46990e507c2db443558c35a.zip
DRASCULA: Simplified some code, cleanup
svn-id: r48216
Diffstat (limited to 'engines/drascula/drascula.cpp')
-rw-r--r--engines/drascula/drascula.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index 7954ada562..1b40626b11 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -252,8 +252,12 @@ Common::Error DrasculaEngine::run() {
clearRoom();
} else if (currentChapter == 5) {
} else if (currentChapter == 6) {
- igorX = 105, igorY = 85, trackIgor = 1;
- drasculaX = 62, drasculaY = 99, trackDrascula = 1;
+ igorX = 105;
+ igorY = 85;
+ trackIgor = 1;
+ drasculaX = 62;
+ drasculaY = 99;
+ trackDrascula = 1;
actorFrames[kFramePendulum] = 0;
flag_tv = 0;
}
@@ -314,7 +318,7 @@ bool DrasculaEngine::runCurrentChapter() {
}
}
- for (n = 1; n < 43; n++)
+ for (n = 1; n < ARRAYSIZE(inventoryObjects); n++)
inventoryObjects[n] = 0;
for (n = 0; n < NUM_FLAGS; n++)