aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:18:51 +0000
committerEugene Sandulenko2010-06-15 10:18:51 +0000
commit6d4ad23b55c328fd1674b07330f85b14bfc20482 (patch)
tree3182471893478577cfc8e0ea539f9487975d5067 /engines
parent2ccb5bb0251d801ef8b2fc15accbf7d421990afa (diff)
downloadscummvm-rg350-6d4ad23b55c328fd1674b07330f85b14bfc20482.tar.gz
scummvm-rg350-6d4ad23b55c328fd1674b07330f85b14bfc20482.tar.bz2
scummvm-rg350-6d4ad23b55c328fd1674b07330f85b14bfc20482.zip
Drascula: Fix bug #2854303.
Bug #2854303: "DRASCULA: Glitch when using cross on vampire guard". Apparently during refactoring of animation-related code duplication the conversion was incorrect. Rewrote relevant function. svn-id: r49704
Diffstat (limited to 'engines')
-rw-r--r--engines/drascula/animation.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp
index 67a1e2bee3..33607c2f15 100644
--- a/engines/drascula/animation.cpp
+++ b/engines/drascula/animation.cpp
@@ -32,9 +32,12 @@ void DrasculaEngine::updateAnim(int y, int destX, int destY, int width, int heig
for (int n = 0; n < count; n++){
x++;
- copyBackground(x, y, destX, destY, width, height, src, screenSurface);
- if (copyRectangle)
+ if (copyRectangle) {
+ copyBackground(destX, destY, destX, destY, width, height, bgSurface, screenSurface);
copyRect(x, y, destX, destY, width, height, src, screenSurface);
+ } else {
+ copyBackground(x, y, destX, destY, width, height, src, screenSurface);
+ }
updateScreen(destX, destY, destX, destY, width, height, screenSurface);
x += width;
pause(delayVal);
@@ -1083,6 +1086,7 @@ void DrasculaEngine::animation_35_2() {
fadeToBlack(2);
}
+// Use cross on Yoda
void DrasculaEngine::animation_2_3() {
debug(4, "animation_2_3()");