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
This commit is contained in:
Eugene Sandulenko 2010-06-15 10:18:51 +00:00
parent 2ccb5bb025
commit 6d4ad23b55

View File

@ -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()");