[Scummvm-cvs-logs] CVS: scummvm/sword1 sound.cpp,1.15,1.16

Jonathan Gray khalek at users.sourceforge.net
Thu Dec 25 19:08:00 CET 2003


Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1:/tmp/cvs-serv10349

Modified Files:
	sound.cpp 
Log Message:
look for data/speech1/2.clu and data/speech/speech.clu, instead of data/speech1/2.clu and data/speech/speech1/2.clu fixes running from cd or using the same layout as the cd

Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/sound.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- sound.cpp	24 Dec 2003 00:25:18 -0000	1.15
+++ sound.cpp	26 Dec 2003 03:07:01 -0000	1.16
@@ -215,10 +215,13 @@
 
 void SwordSound::initCowSystem(void) {
 	char cowName[25];
+	/* look for speech1/2.clu in the data dir
+	   and speech/speech.clu (running from cd or using cd layout)
+	*/
 	sprintf(cowName, "SPEECH%d.CLU", SwordEngine::_systemVars.currentCD);
 	_cowFile.open(cowName);
 	if (!_cowFile.isOpen()) {
-		sprintf(cowName, "speech/SPEECH%d.CLU", SwordEngine::_systemVars.currentCD);
+		sprintf(cowName, "speech/SPEECH.CLU");
 		_cowFile.open(cowName);
 	}
 	if (_cowFile.isOpen()) {





More information about the Scummvm-git-logs mailing list