[Scummvm-cvs-logs] CVS: residual actor.cpp,1.6,1.7

James Brown ender at users.sourceforge.net
Thu Aug 21 20:09:15 CEST 2003


Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1:/tmp/cvs-serv9125

Modified Files:
	actor.cpp 
Log Message:
Stop overlapping voices


Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/actor.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- actor.cpp	21 Aug 2003 06:51:02 -0000	1.6
+++ actor.cpp	21 Aug 2003 06:55:07 -0000	1.7
@@ -66,6 +66,8 @@
   const char *secondSlash = std::strchr(msg + 1, '/');
   if (secondSlash == NULL)
     return;
+  if (talkSound_)	// Only once line at a time, please :)
+    shutUp();
   std::string msgId(msg + 1, secondSlash);
   talkSound_ = ResourceLoader::instance()->loadSound((msgId + ".wav").c_str());
   if (talkSound_ != NULL)





More information about the Scummvm-git-logs mailing list