cleanup: Remove Style and use StyleDef everywhere. This gets rid of a lot of Style->StyleDef lookups and discourages code that's specific to a Style. All game logic should be data-driven.
This commit is contained in:
@@ -178,8 +178,8 @@ void ScreenSelect::FinalizeChoices()
|
||||
{
|
||||
const int sel = GetSelectionIndex( (PlayerNumber)p );
|
||||
|
||||
if( m_aModeChoices[sel].m_style != STYLE_INVALID )
|
||||
GAMESTATE->m_CurStyle = m_aModeChoices[sel].m_style;
|
||||
if( m_aModeChoices[sel].m_pStyleDef )
|
||||
GAMESTATE->m_pCurStyleDef = m_aModeChoices[sel].m_pStyleDef;
|
||||
}
|
||||
SCREENMAN->RefreshCreditsMessages();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user