eliminating brute-force search

This commit is contained in:
Glenn Maynard
2004-12-03 23:39:50 +00:00
parent 2243ffa37c
commit dbf1097d4d
+5 -4
View File
@@ -1559,10 +1559,11 @@ void ScreenGameplay::UpdateLights()
bCrossedABeat = fBeatLast != fBeatNow; bCrossedABeat = fBeatLast != fBeatNow;
for( int r=iRowLastCrossed+1; r<=iRowNow; r++ ) // for each index we crossed since the last update FOREACH_CabinetLight( cl )
{ {
FOREACH_CabinetLight( cl ) // for each index we crossed since the last update:
{ FOREACH_NONEMPTY_ROW_IN_TRACK_RANGE( m_CabinetLightsNoteData, cl, r, iRowLastCrossed+1, iRowNow )
{
bool bBlink = (m_CabinetLightsNoteData.GetTapNote( cl, r ).type != TapNote::empty ); bool bBlink = (m_CabinetLightsNoteData.GetTapNote( cl, r ).type != TapNote::empty );
bBlinkCabinetLight[cl] |= bBlink; bBlinkCabinetLight[cl] |= bBlink;
} }