From c8b9ad3002885b02a8dfbf8aae67d10392623334 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 27 Mar 2003 00:39:17 +0000 Subject: [PATCH] add LastTapNoteScoreTrack --- stepmania/src/NoteDataWithScoring.cpp | 20 +++++++++++++------- stepmania/src/NoteDataWithScoring.h | 1 + 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/stepmania/src/NoteDataWithScoring.cpp b/stepmania/src/NoteDataWithScoring.cpp index 7aaee2b2ae..c8b6e1ee97 100644 --- a/stepmania/src/NoteDataWithScoring.cpp +++ b/stepmania/src/NoteDataWithScoring.cpp @@ -111,28 +111,34 @@ TapNoteScore NoteDataWithScoring::MinTapNoteScore(unsigned row) const } /* Return the last tap score of a row: the grade of the tap that completed - * the row. If the row isn't complete (not all taps have been hit), return - * TNS_MISS. */ -TapNoteScore NoteDataWithScoring::LastTapNoteScore(unsigned row) const + * the row. If the row isn't complete (not all taps have been hit), return -1. */ +int NoteDataWithScoring::LastTapNoteScoreTrack(unsigned row) const { - TapNoteScore score = TNS_MARVELOUS; float scoretime = -9999; + int best_track = -1; for( int t=0; t