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:
+5
-1
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user