tweak ScoreDisplayRave

This commit is contained in:
Chris Danford
2003-11-26 06:40:03 +00:00
parent c30561f744
commit 143dc3ae5e
14 changed files with 116 additions and 43 deletions
+10 -2
View File
@@ -250,13 +250,21 @@ void ScreenSelectStyle::UpdateSelectableChoices()
int iSwitchToStyleIndex = -1; // -1 means none found
for( i=0; i<m_aModeChoices.size(); i++ )
{
if( m_aModeChoices[i].IsPlayable() )
const ModeChoice& mc = m_aModeChoices[i];
if( mc.IsPlayable() )
{
iSwitchToStyleIndex = i;
break;
}
}
ASSERT( iSwitchToStyleIndex != -1 ); // no styles are enabled. We're stuck! This should never happen
if( iSwitchToStyleIndex == -1 )// no styles are enabled. We're stuck!
{
DEBUG_ASSERT(0);
SCREENMAN->SystemMessage( "No Styles are selectable." );
SCREENMAN->SetNewScreen( THEME->GetMetric("Common","InitialScreen") );
return;
}
m_iSelection = iSwitchToStyleIndex;
AfterChange();