fix off-by-one (fixes issues with holds that start on stop segments)

This commit is contained in:
Glenn Maynard
2005-03-12 02:30:28 +00:00
parent fe513d047f
commit 88f29c9853
+1 -1
View File
@@ -364,7 +364,7 @@ void Player::Update( float fDeltaTime )
// Instead, only check 1 beat back. Even 1 is overkill.
const int iStartCheckingAt = max( 0, iSongRow-BeatToNoteRow(1) );
NoteData::iterator begin, end;
m_NoteData.GetTapNoteRangeInclusive( iTrack, iStartCheckingAt, iSongRow, begin, end );
m_NoteData.GetTapNoteRangeInclusive( iTrack, iStartCheckingAt, iSongRow+1, begin, end );
for( ; begin != end; ++begin )
{
TapNote &tn = begin->second;