diff options
author | Eugene Sandulenko | 2008-06-06 19:17:21 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2008-06-06 19:17:21 +0000 |
commit | c6f72c52df4bd9d39b0364c7403085a552789b14 (patch) | |
tree | ab53c74de2932f97c9ac82f3dc82a4612ad91fb2 /engines/drascula | |
parent | 31bb8c01c7b389869564ebfbb5a5ac61be57c11f (diff) | |
download | scummvm-rg350-c6f72c52df4bd9d39b0364c7403085a552789b14.tar.gz scummvm-rg350-c6f72c52df4bd9d39b0364c7403085a552789b14.tar.bz2 scummvm-rg350-c6f72c52df4bd9d39b0364c7403085a552789b14.zip |
Partially reverted r32580. That surface is used by Spanish version.
svn-id: r32581
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/animation.cpp | 64 | ||||
-rw-r--r-- | engines/drascula/drascula.cpp | 7 | ||||
-rw-r--r-- | engines/drascula/drascula.h | 1 |
3 files changed, 71 insertions, 1 deletions
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp index 76c2843735..f55a388b92 100644 --- a/engines/drascula/animation.cpp +++ b/engines/drascula/animation.cpp @@ -396,6 +396,9 @@ void DrasculaEngine::animation_2_1() { if (animate("ag.bin", 14)) break; + if (_lang == kSpanish) + textSurface = frontSurface; + loadPic("an11y13.alg", extraSurface); if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE)) break; @@ -404,6 +407,9 @@ void DrasculaEngine::animation_2_1() { if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE)) break; + if (_lang == kSpanish) + textSurface = extraSurface; + loadPic(97, extraSurface); if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE)) break; @@ -585,6 +591,9 @@ void DrasculaEngine::animation_2_1() { } void DrasculaEngine::animation_3_1() { + if (_lang == kSpanish) + textSurface = frontSurface; + loadPic("an11y13.alg", extraSurface); talk(192); @@ -610,10 +619,16 @@ void DrasculaEngine::animation_3_1() { flags[0] = 1; + if (_lang == kSpanish) + textSurface = extraSurface; + loadPic(97, extraSurface); } void DrasculaEngine::animation_4_1() { + if (_lang == kSpanish) + textSurface = frontSurface; + loadPic("an12.alg", extraSurface); talk(205); @@ -645,6 +660,9 @@ void DrasculaEngine::animation_4_1() { talk_pianist(4); talk(209); + if (_lang == kSpanish) + textSurface = extraSurface; + flags[11] = 0; loadPic(97, extraSurface); } @@ -710,6 +728,9 @@ void DrasculaEngine::animation_4_2() { loadPic("ciego4.alg", backSurface); loadPic("ciego5.alg", frontSurface); + if (_lang == kSpanish) + textSurface = frontSurface; + copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface); updateScreen(); @@ -755,6 +776,9 @@ void DrasculaEngine::animation_4_2() { loadPic(99, backSurface); withoutVerb(); + if (_lang == kSpanish) + textSurface = extraSurface; + flags[9] = 0; flags[4] = 1; } @@ -1907,6 +1931,9 @@ void DrasculaEngine::animation_1_6() { trackDrascula = 0; talk_drascula(35); + if (_lang == kSpanish) + textSurface = extraSurface; + clearRoom(); enterRoom(102); activatePendulum(); @@ -2118,6 +2145,9 @@ void DrasculaEngine::animation_19_6() { } void DrasculaEngine::animation_12_2() { + if (_lang == kSpanish) + textSurface = frontSurface; + loadPic("an12.alg", extraSurface); talk(356); @@ -2143,11 +2173,17 @@ void DrasculaEngine::animation_12_2() { talk_pianist(5); converse(1); + if (_lang == kSpanish) + textSurface = extraSurface; + flags[11] = 0; loadPic(974, extraSurface); } void DrasculaEngine::animation_26_2() { + if (_lang == kSpanish) + textSurface = frontSurface; + loadPic("an12.alg", extraSurface); talk(392); @@ -2198,6 +2234,9 @@ void DrasculaEngine::animation_26_2() { pickObject(11); removeObject(kItemBook); + if (_lang == kSpanish) + textSurface = extraSurface; + flags[11] = 0; flags[39] = 1; loadPic(974, extraSurface); @@ -2205,6 +2244,9 @@ void DrasculaEngine::animation_26_2() { } void DrasculaEngine::animation_11_2() { + if (_lang == kSpanish) + textSurface = frontSurface; + loadPic("an11y13.alg", extraSurface); talk(352); @@ -2217,6 +2259,9 @@ void DrasculaEngine::animation_11_2() { pause(40); talk_bartender(82); + if (_lang == kSpanish) + textSurface = extraSurface; + loadPic(974, extraSurface); } @@ -2344,6 +2389,9 @@ void DrasculaEngine::animation_34_2() { } void DrasculaEngine::animation_36_2() { + if (_lang == kSpanish) + textSurface = frontSurface; + loadPic("an11y13.alg", extraSurface); talk(404); @@ -2353,6 +2401,10 @@ void DrasculaEngine::animation_36_2() { talk(355); pause(40); talk_bartender(82); + + if (_lang == kSpanish) + textSurface = extraSurface; + loadPic(974, extraSurface); } @@ -2452,6 +2504,9 @@ void DrasculaEngine::animation_6_2() { stopMusic(); flags[9] = 1; + if (_lang == kSpanish) + textSurface = frontSurface; + clearRoom(); loadPic("ciego1.alg", drawSurface1, HALF_PAL); // ciego = blind loadPic("ciego2.alg", drawSurface3); @@ -2486,6 +2541,9 @@ void DrasculaEngine::animation_6_2() { loadPic(99, backSurface); withoutVerb(); + if (_lang == kSpanish) + textSurface = extraSurface; + flags[9] = 0; } @@ -2504,6 +2562,9 @@ void DrasculaEngine::animation_33_2() { loadPic("ciego4.alg", backSurface); loadPic("ciego5.alg", frontSurface); + if (_lang == kSpanish) + textSurface = frontSurface; + copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface); updateScreen(); @@ -2532,6 +2593,9 @@ void DrasculaEngine::animation_33_2() { loadPic(99, backSurface); withoutVerb(); + if (_lang == kSpanish) + textSurface = extraSurface; + flags[33] = 1; flags[9] = 0; } diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index 4cd511001c..650f941b1f 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -401,6 +401,11 @@ void DrasculaEngine::updateScreen(int xorg, int yorg, int xdes, int ydes, int wi bool DrasculaEngine::runCurrentChapter() { int n; + if (_lang == kSpanish) + textSurface = extraSurface; + else + textSurface = tableSurface; + previousMusic = -1; if (currentChapter != 2) { @@ -1447,7 +1452,7 @@ void DrasculaEngine::print_abc(const char *said, int screenX, int screenY) { textPos[4] = CHAR_WIDTH; textPos[5] = CHAR_HEIGHT; - copyRectClip(textPos, tableSurface, screenSurface); + copyRectClip(textPos, textSurface, screenSurface); screenX = screenX + CHAR_WIDTH; if (screenX > 317) { diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h index aeb63eba9d..ffd9068575 100644 --- a/engines/drascula/drascula.h +++ b/engines/drascula/drascula.h @@ -283,6 +283,7 @@ public: byte *extraSurface; // not sure about this one, was "dir_hare_dch" byte *screenSurface; byte *frontSurface; + byte *textSurface; byte *pendulumSurface; byte cPal[768]; |