simplify, fix crash

This commit is contained in:
Glenn Maynard
2004-07-17 22:21:27 +00:00
parent 9f4f314f7a
commit fe4209035f
-5
View File
@@ -279,16 +279,11 @@ void ScreenEvaluation::Init()
this->AddChild( &m_bgOverlay ); this->AddChild( &m_bgOverlay );
m_bPassFailTriggered = false; // the sound hasn't been triggered yet m_bPassFailTriggered = false; // the sound hasn't been triggered yet
switch( m_Type )
{
case stage:
case course:
if( m_bFailed ) if( m_bFailed )
m_sndPassFail.Load( THEME->GetPathS(m_sName, "failed") ); m_sndPassFail.Load( THEME->GetPathS(m_sName, "failed") );
else else
m_sndPassFail.Load( THEME->GetPathS(m_sName, "passed") ); m_sndPassFail.Load( THEME->GetPathS(m_sName, "passed") );
m_sndPassFail.Play(); m_sndPassFail.Play();
}
m_bgCondBga.Load(m_sName); m_bgCondBga.Load(m_sName);