Fix last arcade stage graphic not being cached; fix this correctly.
This commit is contained in:
@@ -309,12 +309,9 @@ 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 )
|
||||||
{
|
|
||||||
for( int stage = 0; stage < (PREFSMAN->m_iNumArcadeStages)-1; ++stage )
|
|
||||||
out.push_back( ssprintf("%d",stage+1) );
|
out.push_back( ssprintf("%d",stage+1) );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
int GameState::GetCourseSongIndex()
|
int GameState::GetCourseSongIndex()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -133,7 +133,8 @@ 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 );
|
||||||
|
if( path != "" )
|
||||||
TEXTUREMAN->CacheTexture( path );
|
TEXTUREMAN->CacheTexture( path );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user