add rolls to eval and scoring

This commit is contained in:
Chris Danford
2005-05-09 06:15:59 +00:00
parent e9616fb6d4
commit c36df02254
5 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -556,7 +556,6 @@ int NoteData::GetNumRowsWithSimultaneousTaps( int iMinTaps, int iStartIndex, int
return iNum;
}
// XXX: This shouldn't include rolls, but need to check how that would impact scoring ...
int NoteData::GetNumHoldNotes( int iStartIndex, int iEndIndex ) const
{
int iNumHolds = 0;
@@ -566,7 +565,8 @@ int NoteData::GetNumHoldNotes( int iStartIndex, int iEndIndex ) const
GetTapNoteRangeExclusive( t, iStartIndex, iEndIndex, begin, end );
for( ; begin != end; ++begin )
{
if( begin->second.type != TapNote::hold_head )
if( begin->second.type != TapNote::hold_head ||
begin->second.subType != TapNote::hold_head_hold )
continue;
iNumHolds++;
}