Change this interface to return the tap note itself, rather than just the result.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user