From fe4209035f492b92b1e877de52d55d76aabf81b4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 17 Jul 2004 22:21:27 +0000 Subject: [PATCH] simplify, fix crash --- stepmania/src/ScreenEvaluation.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 1140e8325c..16cb6350e8 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -279,16 +279,11 @@ void ScreenEvaluation::Init() this->AddChild( &m_bgOverlay ); m_bPassFailTriggered = false; // the sound hasn't been triggered yet - switch( m_Type ) - { - case stage: - case course: - if( m_bFailed ) - m_sndPassFail.Load( THEME->GetPathS(m_sName, "failed") ); - else - m_sndPassFail.Load( THEME->GetPathS(m_sName, "passed") ); - m_sndPassFail.Play(); - } + if( m_bFailed ) + m_sndPassFail.Load( THEME->GetPathS(m_sName, "failed") ); + else + m_sndPassFail.Load( THEME->GetPathS(m_sName, "passed") ); + m_sndPassFail.Play(); m_bgCondBga.Load(m_sName);