From a647a046002905c1bf796adaf5d5aead8ff76883 Mon Sep 17 00:00:00 2001 From: Alberto Ramos Date: Wed, 11 Aug 2010 00:55:40 -0600 Subject: [PATCH] ActorSound stop and pause should be usable now --- src/ActorSound.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ActorSound.cpp b/src/ActorSound.cpp index f07624618e..481ee2c2f7 100644 --- a/src/ActorSound.cpp +++ b/src/ActorSound.cpp @@ -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 )