[Scummvm-cvs-logs] CVS: scummvm/scumm string.cpp,1.197,1.198

Travis Howell kirben at users.sourceforge.net
Sun Feb 22 00:16:02 CET 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24724/scumm

Modified Files:
	string.cpp 
Log Message:

Restrict hack to COMI


Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- string.cpp	21 Feb 2004 06:44:10 -0000	1.197
+++ string.cpp	22 Feb 2004 08:02:56 -0000	1.198
@@ -880,7 +880,7 @@
 		// FIXME: This is a hack to distinguish between 'real' actor speech and
 		// some odd (?) other strings... there is probably a better way to do this.
 		// I just don't know which (yet).
-		if (ptr[i+1] != 0 && ptr[i+1] != 255) {
+		if ((_gameId == GID_DIG) || (_gameId == GID_CMI && ptr[i+1] != 0 && ptr[i+1] != 255)) {
 			_sound->stopTalkSound();
 			_imuseDigital->startVoice(kTalkSoundID, pointer);
 			_sound->talkSound(0, 0, 2, -1);





More information about the Scummvm-git-logs mailing list