From a9fb4cc62a13232f213fff3c930d076c0e1fd838 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 15 Oct 2004 14:37:33 +0000 Subject: [PATCH] don't blink menu lights --- stepmania/src/ScreenGameplay.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 58d80bb8e9..5b98130daf 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1556,12 +1556,27 @@ void ScreenGameplay::Update( float fDeltaTime ) } - // send blink data + // Before the first beat of the song, blink all cabinet lights (except for + // menu buttons) on the beat. bool bOverrideCabinetBlink = (GAMESTATE->m_fSongBeat < GAMESTATE->m_pCurSong->m_fFirstBeat) && bCrossedABeat; - FOREACH_CabinetLight( cl ) { - if( bOverrideCabinetBlink || bBlinkCabinetLight[cl] ) + switch( cl ) + { + case LIGHT_BUTTONS_LEFT: + case LIGHT_BUTTONS_RIGHT: + // don't blink + break; + default: + bBlinkCabinetLight[cl] |= bOverrideCabinetBlink; + break; + } + } + + // Send blink data. + FOREACH_CabinetLight( cl ) + { + if( bBlinkCabinetLight[cl] ) LIGHTSMAN->BlinkCabinetLight( cl ); }