[Scummvm-cvs-logs] CVS: scummvm/bs2 anims.cpp,1.12,1.13

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Mon Sep 8 23:55:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/bs2
In directory sc8-pr-cvs1:/tmp/cvs-serv2335

Modified Files:
	anims.cpp 
Log Message:
Read Smacker voice-overs from the correct file, same way as speech.cpp does


Index: anims.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/anims.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- anims.cpp	8 Sep 2003 17:18:38 -0000	1.12
+++ anims.cpp	9 Sep 2003 06:54:11 -0000	1.13
@@ -579,26 +579,13 @@
 			// set up path to speech cluster
 			// first checking if we have speech1.clu or speech2.clu in current directory (for translators to test)
 
-			if (g_sword2->_gameId == GID_SWORD2_DEMO) {
-				strcpy(speechFile,"speech.clu");
-			} else {
+			File fp;
 
-				#ifdef _SWORD2_DEBUG
-					if ((res_man.WhichCd()==1) && (!access("speech1.clu",0)))	// if 0 ie. if it's there
-					{
-						strcpy(speechFile,"speech1.clu");
-					}
-					else if ((res_man.WhichCd()==2) && (!access("speech2.clu",0)))	// if 0 ie. if it's there
-					{
-						strcpy(speechFile,"speech2.clu");
-					}
-					else
-					#endif	// _SWORD2_DEBUG
-					{
-						strcpy(speechFile, "speech.clu");
-					}
-			}
-			//------------------------------
+			sprintf(speechFile, "speech%d.clu", res_man.WhichCd());
+			if (fp.open(speechFile, g_sword2->getGameDataPath()))
+				fp.close();
+			else
+				strcpy(speechFile, "speech.clu");
 
 			wavSize = g_sword2->_sound->GetCompSpeechSize(speechFile, wavId);		// returns size of decompressed wav, or 0 if wav not found
 			if (wavSize)	// if we've got the wav





More information about the Scummvm-git-logs mailing list