Change this interface to return the tap note itself, rather than just the result.

This commit is contained in:
Steve Checkoway
2006-07-10 04:29:19 +00:00
parent 746c21f44a
commit c6ba8423b6
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -28,7 +28,7 @@ int GetNumNWithScore( const NoteData &in, TapNoteScore tns, int MinTaps, int iSt
FOREACH_NONEMPTY_ROW_ALL_TRACKS_RANGE( in, r, iStartRow, iEndRow )
{
int iNumNotesInRow = in.GetNumTracksWithTapOrHoldHead( r );
TapNoteScore tnsRow = NoteDataWithScoring::LastTapNoteResult( in, r ).tns;
TapNoteScore tnsRow = NoteDataWithScoring::LastTapNoteWithResult( in, r ).result.tns;
if( iNumNotesInRow >= MinTaps && tnsRow >= tns )
iNumSuccessfulDoubles++;
@@ -157,12 +157,12 @@ int LastTapNoteScoreTrack( const NoteData &in, unsigned iRow )
}
TapNoteResult NoteDataWithScoring::LastTapNoteResult( const NoteData &in, unsigned iRow )
const TapNote &NoteDataWithScoring::LastTapNoteWithResult( const NoteData &in, unsigned iRow )
{
int iTrack = LastTapNoteScoreTrack( in, iRow );
if( iTrack == -1 )
return TapNoteResult();
return in.GetTapNote(iTrack, iRow).result;
return TAP_EMPTY;
return in.GetTapNote( iTrack, iRow );
}