From e3cb949b95b1b6caa4239c4ee15ebcc6dec8063a Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Tue, 12 Apr 2016 21:51:36 +0100 Subject: 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. --- engines/drascula/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/drascula/animation.cpp') 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); -- cgit v1.2.3