[Scummvm-cvs-logs] SF.net SVN: scummvm: [32581] scummvm/trunk/engines/drascula

sev at users.sourceforge.net sev at users.sourceforge.net
Fri Jun 6 21:17:21 CEST 2008


Revision: 32581
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32581&view=rev
Author:   sev
Date:     2008-06-06 12:17:21 -0700 (Fri, 06 Jun 2008)

Log Message:
-----------
Partially reverted r32580. That surface is used by Spanish version.

Modified Paths:
--------------
    scummvm/trunk/engines/drascula/animation.cpp
    scummvm/trunk/engines/drascula/drascula.cpp
    scummvm/trunk/engines/drascula/drascula.h

Modified: scummvm/trunk/engines/drascula/animation.cpp
===================================================================
--- scummvm/trunk/engines/drascula/animation.cpp	2008-06-06 18:28:50 UTC (rev 32580)
+++ scummvm/trunk/engines/drascula/animation.cpp	2008-06-06 19:17:21 UTC (rev 32581)
@@ -396,6 +396,9 @@
 		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 @@
 		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_3_1() {
+	if (_lang == kSpanish)
+		textSurface = frontSurface;
+
 	loadPic("an11y13.alg", extraSurface);
 
 	talk(192);
@@ -610,10 +619,16 @@
 
 	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 @@
 	talk_pianist(4);
 	talk(209);
 
+	if (_lang == kSpanish)
+		textSurface = extraSurface;
+
 	flags[11] = 0;
 	loadPic(97, extraSurface);
 }
@@ -710,6 +728,9 @@
 	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 @@
 	loadPic(99, backSurface);
 	withoutVerb();
 
+	if (_lang == kSpanish)
+		textSurface = extraSurface;
+
 	flags[9] = 0;
 	flags[4] = 1;
 }
@@ -1907,6 +1931,9 @@
 	trackDrascula = 0;
 	talk_drascula(35);
 
+	if (_lang == kSpanish)
+		textSurface = extraSurface;
+
 	clearRoom();
 	enterRoom(102);
 	activatePendulum();
@@ -2118,6 +2145,9 @@
 }
 
 void DrasculaEngine::animation_12_2() {
+	if (_lang == kSpanish)
+		textSurface = frontSurface;
+
 	loadPic("an12.alg", extraSurface);
 
 	talk(356);
@@ -2143,11 +2173,17 @@
 	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 @@
 	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_11_2() {
+	if (_lang == kSpanish)
+		textSurface = frontSurface;
+
 	loadPic("an11y13.alg", extraSurface);
 
 	talk(352);
@@ -2217,6 +2259,9 @@
 	pause(40);
 	talk_bartender(82);
 
+	if (_lang == kSpanish)
+		textSurface = extraSurface;
+
 	loadPic(974, extraSurface);
 }
 
@@ -2344,6 +2389,9 @@
 }
 
 void DrasculaEngine::animation_36_2() {
+	if (_lang == kSpanish)
+		textSurface = frontSurface;
+
 	loadPic("an11y13.alg", extraSurface);
 
 	talk(404);
@@ -2353,6 +2401,10 @@
 	talk(355);
 	pause(40);
 	talk_bartender(82);
+
+	if (_lang == kSpanish)
+		textSurface = extraSurface;
+
 	loadPic(974, extraSurface);
 }
 
@@ -2452,6 +2504,9 @@
 	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 @@
 	loadPic(99, backSurface);
 	withoutVerb();
 
+	if (_lang == kSpanish)
+		textSurface = extraSurface;
+
 	flags[9] = 0;
 }
 
@@ -2504,6 +2562,9 @@
 	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 @@
 	loadPic(99, backSurface);
 	withoutVerb();
 
+	if (_lang == kSpanish)
+		textSurface = extraSurface;
+
 	flags[33] = 1;
 	flags[9] = 0;
 }

Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp	2008-06-06 18:28:50 UTC (rev 32580)
+++ scummvm/trunk/engines/drascula/drascula.cpp	2008-06-06 19:17:21 UTC (rev 32581)
@@ -401,6 +401,11 @@
 bool DrasculaEngine::runCurrentChapter() {
 	int n;
 
+	if (_lang == kSpanish)
+		textSurface = extraSurface;
+	else
+		textSurface = tableSurface;
+
 	previousMusic = -1;
 
 	if (currentChapter != 2) {
@@ -1447,7 +1452,7 @@
 		textPos[4] = CHAR_WIDTH;
 		textPos[5] = CHAR_HEIGHT;
 
-		copyRectClip(textPos, tableSurface, screenSurface);
+		copyRectClip(textPos, textSurface, screenSurface);
 
 		screenX = screenX + CHAR_WIDTH;
 		if (screenX > 317) {

Modified: scummvm/trunk/engines/drascula/drascula.h
===================================================================
--- scummvm/trunk/engines/drascula/drascula.h	2008-06-06 18:28:50 UTC (rev 32580)
+++ scummvm/trunk/engines/drascula/drascula.h	2008-06-06 19:17:21 UTC (rev 32581)
@@ -283,6 +283,7 @@
 	byte *extraSurface;	// not sure about this one, was "dir_hare_dch"
 	byte *screenSurface;
 	byte *frontSurface;
+	byte *textSurface;
 	byte *pendulumSurface;
 
 	byte cPal[768];


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list