From 93e88a35772a9916dbceed940157da8c4795ac56 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 16 Jun 2005 18:47:58 +0000 Subject: [PATCH] fix gameplay music doesn't obey mute --- stepmania/src/ScreenGameplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 57805142a1..e1b7e4821b 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1132,7 +1132,8 @@ float ScreenGameplay::StartPlayingSong(float MinTimeToNotes, float MinTimeToMusi p.m_StartSecond = fStartSecond; // Silence music if not playing attract sounds in demonstration. - p.m_Volume = (!GAMESTATE->m_bDemonstrationOrJukebox || GAMESTATE->IsTimeToPlayAttractSounds()) ? 1.0f : 0.0f; + if( GAMESTATE->m_bDemonstrationOrJukebox && !GAMESTATE->IsTimeToPlayAttractSounds() ) + p.m_Volume = 0; ASSERT( !m_pSoundMusic->IsPlaying() ); m_pSoundMusic->Play( &p );