awesome fix for sounds: this is possible now

This commit is contained in:
Alberto Ramos
2012-02-02 00:09:40 -07:00
parent 5e4acda585
commit 367f29f132
2 changed files with 20 additions and 8 deletions
+1 -8
View File
@@ -14,14 +14,7 @@ void ActorSound::Load( const RString &sPath )
void ActorSound::Play()
{
// This fix makes it possible to stop and pause ActorSounds. (Also,
// sometimes stacking sounds is annoying.) -DaisuMaster
if( m_Sound.IsPlaying() )
{
m_Sound.PlayCopy();
return;
}
m_Sound.StartPlaying();
m_Sound.Play();
}
void ActorSound::Pause( bool bPause )