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.
This commit is contained in:
@@ -26,7 +26,7 @@ bool DifficultyIcon::Load( CString sPath )
|
|||||||
Sprite::Load( sPath );
|
Sprite::Load( sPath );
|
||||||
if( GetNumStates() != 5 && GetNumStates() != 10 )
|
if( GetNumStates() != 5 && GetNumStates() != 10 )
|
||||||
if( DISPLAY->IsWindowed() )
|
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();
|
StopAnimating();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -47,8 +47,8 @@ void DifficultyIcon::SetFromNotes( PlayerNumber pn, Steps* pNotes )
|
|||||||
switch( GetNumStates() )
|
switch( GetNumStates() )
|
||||||
{
|
{
|
||||||
case 5: SetState( iStateNo ); break;
|
case 5: SetState( iStateNo ); break;
|
||||||
case 10: SetState( iStateNo*2+pn ); break;
|
case 10: SetState( iStateNo*2+pn ); break;
|
||||||
default: ASSERT(0);
|
default: SetState( 0 ); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user