[Scummvm-cvs-logs] CVS: residual actor.cpp,1.43,1.44
Pawel Kolodziejski
aquadran at users.sourceforge.net
Fri Jan 14 01:30:18 CET 2005
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14824
Modified Files:
actor.cpp
Log Message:
it should fix double the same voice playing
Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/actor.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- actor.cpp 12 Jan 2005 23:26:03 -0000 1.43
+++ actor.cpp 14 Jan 2005 09:29:44 -0000 1.44
@@ -248,14 +248,15 @@
}
void Actor::shutUp() {
+ g_imuse->stopSound(_talkSoundName.c_str());
+ _talkSoundName = "";
if (_lipSynch != NULL) {
- g_imuse->stopSound(_talkSoundName.c_str());
if ((_talkAnim != -1) && (_talkChore[_talkAnim] >= 0))
_talkCostume[_talkAnim]->stopChore(_talkChore[_talkAnim]);
_lipSynch = NULL;
- } else if (_mumbleChore >= 0)
+ } else if (_mumbleChore >= 0) {
_mumbleCostume->stopChore(_mumbleChore);
- _talkSoundName = "";
+ }
}
void Actor::pushCostume(const char *name) {
More information about the Scummvm-git-logs
mailing list