short-circuit ScreenGameplay::UpdateLights()

This commit is contained in:
Glenn Maynard
2004-12-03 23:31:35 +00:00
parent 2b3e145a30
commit 08cb05e345
+3
View File
@@ -1537,6 +1537,9 @@ void ScreenGameplay::Update( float fDeltaTime )
void ScreenGameplay::UpdateLights() void ScreenGameplay::UpdateLights()
{ {
if( !LIGHTSMAN->IsEnabled() )
return;
const Style* pStyle = GAMESTATE->GetCurrentStyle(); const Style* pStyle = GAMESTATE->GetCurrentStyle();
bool bBlinkCabinetLight[NUM_CABINET_LIGHTS]; bool bBlinkCabinetLight[NUM_CABINET_LIGHTS];
bool bBlinkGameButton[MAX_GAME_CONTROLLERS][MAX_GAME_BUTTONS]; bool bBlinkGameButton[MAX_GAME_CONTROLLERS][MAX_GAME_BUTTONS];