From f64a93bb21655f639a3bbd90f1a715e44e0c78f5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 6 Apr 2005 08:09:27 +0000 Subject: [PATCH] fix off-by-one causing artifacts with Cx mods during stops --- stepmania/src/NoteField.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NoteField.cpp b/stepmania/src/NoteField.cpp index 04ad02b906..8b136a5209 100644 --- a/stepmania/src/NoteField.cpp +++ b/stepmania/src/NoteField.cpp @@ -554,7 +554,7 @@ void NoteField::DrawPrimitives() { NoteData::TrackMap::const_iterator begin, end; - m_pNoteData->GetTapNoteRangeInclusive( c, iFirstIndexToDraw, iLastIndexToDraw, begin, end ); + m_pNoteData->GetTapNoteRangeInclusive( c, iFirstIndexToDraw, iLastIndexToDraw+1, begin, end ); for( ; begin != end; ++begin ) { @@ -609,7 +609,7 @@ void NoteField::DrawPrimitives() // draw notes from furthest to closest NoteData::TrackMap::const_iterator begin, end; - m_pNoteData->GetTapNoteRange( c, iFirstIndexToDraw, iLastIndexToDraw, begin, end ); + m_pNoteData->GetTapNoteRange( c, iFirstIndexToDraw, iLastIndexToDraw+1, begin, end ); for( ; begin != end; ++begin ) { int i = begin->first;