aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula/drascula.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2013-01-04 19:30:36 +0200
committerFilippos Karapetis2013-01-04 19:31:25 +0200
commitc1b0c80cce2aa20b854836fe003b31ed1ad4e6e6 (patch)
treec63b0a50543df92cd587971001145ae22eafcde6 /engines/drascula/drascula.cpp
parent069f1079d8c9a253e019380c6074dc711f8953d2 (diff)
downloadscummvm-rg350-c1b0c80cce2aa20b854836fe003b31ed1ad4e6e6.tar.gz
scummvm-rg350-c1b0c80cce2aa20b854836fe003b31ed1ad4e6e6.tar.bz2
scummvm-rg350-c1b0c80cce2aa20b854836fe003b31ed1ad4e6e6.zip
DRASCULA: Merge some animation functions and document all animations
Diffstat (limited to 'engines/drascula/drascula.cpp')
-rw-r--r--engines/drascula/drascula.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index c2fd16423d..7733a0fd6b 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -269,7 +269,7 @@ Common::Error DrasculaEngine::run() {
loadPic(96, frontSurface);
} else if (currentChapter == 4) {
if (loadedDifferentChapter == 0)
- animation_ray();
+ animation_castle();
loadPic(96, frontSurface);
clearRoom();
} else if (currentChapter == 5) {
@@ -377,6 +377,8 @@ bool DrasculaEngine::runCurrentChapter() {
curY = 56;
gotoObject(65, 145);
}
+
+ // REMINDER: This is a good place to debug animations
} else if (currentChapter == 2) {
addObject(kItemPhone);
trackProtagonist = 3;
@@ -647,17 +649,14 @@ bool DrasculaEngine::runCurrentChapter() {
}
if (leftMouseButton != 0 || rightMouseButton != 0 || key != 0)
- if (currentChapter != 3)
- framesWithoutAction = 0;
+ framesWithoutAction = 0;
if (framesWithoutAction == 15000) {
screenSaver();
- if (currentChapter != 3)
- framesWithoutAction = 0;
+ framesWithoutAction = 0;
}
- if (currentChapter != 3)
- framesWithoutAction++;
+ framesWithoutAction++;
}
return false;