mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
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:
parent
2ccb5bb025
commit
6d4ad23b55
@ -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()");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user