aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula/animation.cpp
diff options
context:
space:
mode:
authorThierry Crozat2016-04-12 21:51:36 +0100
committerThierry Crozat2016-04-12 22:19:43 +0100
commite3cb949b95b1b6caa4239c4ee15ebcc6dec8063a (patch)
tree3f52d7568fe2bc7b33d2c1bf2e475cb05f53f6e1 /engines/drascula/animation.cpp
parent6cd76152a554bdffb832e409183fbd6b0fd7bcb3 (diff)
downloadscummvm-rg350-e3cb949b95b1b6caa4239c4ee15ebcc6dec8063a.tar.gz
scummvm-rg350-e3cb949b95b1b6caa4239c4ee15ebcc6dec8063a.tar.bz2
scummvm-rg350-e3cb949b95b1b6caa4239c4ee15ebcc6dec8063a.zip
DRASCULA: Fix wrong background for inventory in chapter 6
This was a regression from commit fa3d3e3 and this fixes part of bug #7113 DRASCULA: Serious sprite glitches. The original uses extraSurface to draw text in draw_abc() in the Spanish version while other languages use tableSurface. But in ScummVM this was changed to use tableSurface for all languages. However this caused an issue in chapter 6 when displaying the inventory has it is also using tableSurface, as it was for all languages in the original. While using the same surface works for other languages, in the Spanish version we get the wrong background in the inventory. Rather than revert to using extraSurface for drawing text which is a big change and impact all the chapters, I have opted to simply swap the usage of the tableSurface and extraSurface in chapter 6 for the Spanish version compared to the original engine. The changes therefore only impact chapter 6 and only the Spanish version. I played the chapter in full to check that it indeed works without causing adverse effects.
Diffstat (limited to 'engines/drascula/animation.cpp')
-rw-r--r--engines/drascula/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp
index 439253e5d6..5901d57b1f 100644
--- a/engines/drascula/animation.cpp
+++ b/engines/drascula/animation.cpp
@@ -1611,7 +1611,7 @@ void DrasculaEngine::animation_6_6() {
removeObject(20);
loadPic(96, frontSurface);
loadPic(97, frontSurface);
- loadPic(97, extraSurface);
+ loadPic(97, _lang == kSpanish ? tableSurface : extraSurface);
loadPic(99, backSurface);
doBreak = 1;
objExit = 104;
@@ -2215,7 +2215,7 @@ void DrasculaEngine::activatePendulum() {
_roomNumber = 102;
loadPic(102, bgSurface, HALF_PAL);
loadPic("an_p1.alg", drawSurface3);
- loadPic("an_p2.alg", extraSurface);
+ loadPic("an_p2.alg", _lang == kSpanish ? tableSurface : extraSurface);
loadPic("an_p3.alg", frontSurface);
copyBackground(0, 171, 0, 0, OBJWIDTH, OBJHEIGHT, backSurface, drawSurface3);