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
+3 -5
View File
@@ -419,11 +419,9 @@ bool ArrowsNeedZBuffer( PlayerNumber pn )
float ArrowGetZoom( PlayerNumber pn )
{
/* Hack: make STYLE_TECHNO_VERSUS8 fit. */
if( GAMESTATE->m_CurGame == GAME_TECHNO &&
( GAMESTATE->m_CurStyle == STYLE_TECHNO_VERSUS8
|| GAMESTATE->m_PlayMode == PLAY_MODE_BATTLE
|| GAMESTATE->m_PlayMode == PLAY_MODE_RAVE ) )
// FIXME: Move the zoom values into StyleDef
if( GAMESTATE->m_pCurStyleDef->m_bNeedsZoomOutWith2Players &&
(GAMESTATE->GetNumSidesJoined()==2 || GAMESTATE->AnyPlayersAreCpu()) )
return 0.6f;
return 1.0f;
}