From 2243ffa37cad22fa31e2d2814ddc636f0950113a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 3 Dec 2004 23:33:06 +0000 Subject: [PATCH] split this loop apart (working on eliminating brute-force search) --- stepmania/src/ScreenGameplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 537db6bfea..537fa1085f 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1566,6 +1566,10 @@ void ScreenGameplay::UpdateLights() bool bBlink = (m_CabinetLightsNoteData.GetTapNote( cl, r ).type != TapNote::empty ); bBlinkCabinetLight[cl] |= bBlink; } + } + + for( int r=iRowLastCrossed+1; r<=iRowNow; r++ ) // for each index we crossed since the last update + { FOREACH_EnabledPlayer( pn ) { for( int t=0; t