Added debug key for toggling action sounds off. Touches every place that RageSound::Play is called, hope I didn't miss one.

This commit is contained in:
Kyzentun
2015-02-28 06:25:02 -07:00
parent d35933f1e5
commit b293a8c073
38 changed files with 165 additions and 131 deletions
+5 -1
View File
@@ -392,13 +392,17 @@ void RageSound::SoundIsFinishedPlaying()
m_Mutex.Unlock();
}
void RageSound::Play( const RageSoundParams *pParams )
void RageSound::Play(bool is_action, const RageSoundParams *pParams)
{
if( m_pSource == NULL )
{
LOG->Warn( "RageSound::Play: sound not loaded" );
return;
}
if(is_action && PREFSMAN->m_MuteActions)
{
return;
}
if( IsPlaying() )
{