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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user