replace ASSERT(0) with useful fail messages

This commit is contained in:
Devin J. Pohly
2012-12-27 16:59:35 -05:00
parent 376056a0cf
commit bd0e2074ad
71 changed files with 289 additions and 245 deletions
+3 -3
View File
@@ -238,7 +238,8 @@ float ScreenRanking::SetPage( const PageToShow &pts )
m_textTime[l].SetDiffuseColor( STEPS_TYPE_COLOR.GetValue(pts.colorIndex) );
}
switch( RANKING_TYPE )
RankingType rtype = RANKING_TYPE;
switch( rtype )
{
case RankingType_Category:
{
@@ -332,8 +333,7 @@ float ScreenRanking::SetPage( const PageToShow &pts )
}
return SECONDS_PER_PAGE;
default:
ASSERT(0);
return 0;
FAIL_M(ssprintf("Invalid RankingType: %i", rtype));
}
}