When letting SelectMusic choose a Style, don't force that it be set by a proceeding menu.

"ALL_STEPS_TYPES_IN_ONE_LIST" is not the best name.  It should probably be called "AUTO_SET_STYLE", or something similar.
This commit is contained in:
Chris Danford
2007-03-04 20:55:12 +00:00
parent cf80f30e3b
commit a111a7f6e1
+7
View File
@@ -104,6 +104,13 @@ void ScreenSelectMusic::Init()
m_TexturePreload.Load( Banner::SongBannerTexture(THEME->GetPathG("Banner","mode")) );
}
if( CommonMetrics::ALL_STEPS_TYPES_IN_ONE_LIST )
{
vector<StepsType> vst;
GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, vst );
const Style *pStyle = GAMEMAN->GetFirstCompatibleStyle( GAMESTATE->m_pCurGame, GAMESTATE->GetNumSidesJoined(), vst[0] );
GAMESTATE->m_pCurStyle.Set( pStyle );
}
if( GAMESTATE->GetCurrentStyle() == NULL )
RageException::Throw( "The Style has not been set. A theme must set the Style before loading ScreenSelectMusic." );