From cd9b66220aeeb54fbe73a64705b62b0f0a86a154 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 22 Jan 2005 19:18:42 +0000 Subject: [PATCH] use MAX_NOTE_ROW, fixes --- stepmania/src/NoteData.cpp | 28 ++++------------------------ stepmania/src/NoteData.h | 16 ++++++++-------- stepmania/src/NoteDataUtil.cpp | 13 ++++++------- 3 files changed, 18 insertions(+), 39 deletions(-) diff --git a/stepmania/src/NoteData.cpp b/stepmania/src/NoteData.cpp index d59efd4d50..f19584660a 100644 --- a/stepmania/src/NoteData.cpp +++ b/stepmania/src/NoteData.cpp @@ -332,7 +332,7 @@ int NoteData::GetLastRow() const for( int t=0; t < GetNumTracks(); t++ ) { - int iRow = 999999999; + int iRow = MAX_NOTE_ROW; if( !GetPrevTapNoteRowForTrack( t, iRow ) ) continue; iOldestRowFoundSoFar = max( iOldestRowFoundSoFar, iRow ); @@ -349,9 +349,6 @@ int NoteData::GetLastRow() const int NoteData::GetNumTapNotes( int iStartIndex, int iEndIndex ) const { - if( iEndIndex == -1 ) - iEndIndex = 999999; - int iNumNotes = 0; for( int t=0; t