From 87f668c5414b821e6f21cb55f1383f4a118ecfa3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 25 Sep 2003 05:41:01 +0000 Subject: [PATCH] Fix output. Don't ASSERT(0) on things theme errors can produce; we don't want to produce a crash report when it's just an out-of-date theme. --- stepmania/src/DifficultyIcon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/DifficultyIcon.cpp b/stepmania/src/DifficultyIcon.cpp index e650797a18..cf410984de 100644 --- a/stepmania/src/DifficultyIcon.cpp +++ b/stepmania/src/DifficultyIcon.cpp @@ -26,7 +26,7 @@ bool DifficultyIcon::Load( CString sPath ) Sprite::Load( sPath ); if( GetNumStates() != 5 && GetNumStates() != 10 ) if( DISPLAY->IsWindowed() ) - HOOKS->MessageBoxOK( "The difficulty icon graphic '%s' must have 5 or 10 frames.", sPath.c_str() ); + HOOKS->MessageBoxOK( ssprintf("The difficulty icon graphic '%s' must have 5 or 10 frames.", sPath.c_str()) ); StopAnimating(); return true; } @@ -47,8 +47,8 @@ void DifficultyIcon::SetFromNotes( PlayerNumber pn, Steps* pNotes ) switch( GetNumStates() ) { case 5: SetState( iStateNo ); break; - case 10: SetState( iStateNo*2+pn ); break; - default: ASSERT(0); + case 10: SetState( iStateNo*2+pn ); break; + default: SetState( 0 ); break; } } }