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:
Chris Danford
2004-06-27 06:52:49 +00:00
parent 94f61972c8
commit 3809715db0
44 changed files with 308 additions and 383 deletions
+2 -2
View File
@@ -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();
}