Fix last arcade stage graphic not being cached; fix this correctly.

This commit is contained in:
Glenn Maynard
2003-10-24 04:56:17 +00:00
parent 03c687861d
commit b8095439f4
2 changed files with 5 additions and 7 deletions
+2 -5
View File
@@ -309,11 +309,8 @@ void GameState::GetAllStageTexts( CStringArray &out )
out.push_back( "final" ); out.push_back( "final" );
out.push_back( "extra1" ); out.push_back( "extra1" );
out.push_back( "extra2" ); out.push_back( "extra2" );
if (!(PREFSMAN->m_bEventMode)) for( int stage = 0; stage < PREFSMAN->m_iNumArcadeStages; ++stage )
{ out.push_back( ssprintf("%d",stage+1) );
for( int stage = 0; stage < (PREFSMAN->m_iNumArcadeStages)-1; ++stage )
out.push_back( ssprintf("%d",stage+1) );
}
} }
int GameState::GetCourseSongIndex() int GameState::GetCourseSongIndex()
+3 -2
View File
@@ -133,8 +133,9 @@ ScreenSelectMusic::ScreenSelectMusic( CString sClassName ) : Screen( sClassName
GAMESTATE->GetAllStageTexts( StageTexts ); GAMESTATE->GetAllStageTexts( StageTexts );
for( unsigned i = 0; i < StageTexts.size(); ++i ) for( unsigned i = 0; i < StageTexts.size(); ++i )
{ {
CString path = THEME->GetPathToG( "ScreenSelectMusic stage "+StageTexts[i] ); CString path = THEME->GetPathToG( "ScreenSelectMusic stage "+StageTexts[i], true );
TEXTUREMAN->CacheTexture( path ); if( path != "" )
TEXTUREMAN->CacheTexture( path );
} }
} }