eliminating brute-force search
This commit is contained in:
@@ -1559,9 +1559,10 @@ 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user