ActorSound stop and pause should be usable now

This commit is contained in:
Alberto Ramos
2010-08-11 00:55:40 -06:00
parent e2f424e99d
commit a647a04600
+9 -1
View File
@@ -14,7 +14,15 @@ void ActorSound::Load( const RString &sPath )
void ActorSound::Play()
{
m_Sound.PlayCopy();
// This fix makes possible to stop and pause actorsounds, also because
// sometimes stacking sounds is annoying -DaisuMaster
if( m_Sound.IsPlaying() )
{
m_Sound.PlayCopy();
return;
}
m_Sound.StartPlaying();
}
void ActorSound::Pause( bool bPause )