eliminating brute-force search for ticks

This commit is contained in:
Glenn Maynard
2004-12-03 23:50:20 +00:00
parent 573f8035b3
commit 3961acc447
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -515,7 +515,8 @@ void ScreenEdit::PlayTicks()
iRowLastCrossed = iSongRow;
int iTickRow = -1;
for( int r=iRowLastCrossed+1; r<=iSongRow; r++ ) // for each index we crossed since the last update
// for each index we crossed since the last update:
FOREACH_NONEMPTY_ROW_ALL_TRACKS_RANGE( m_Player.m_NoteData, r, iRowLastCrossed+1, iSongRow )
if( m_Player.m_NoteData.IsThereATapOrHoldHeadAtRow( r ) )
iTickRow = r;