fix hands counting
This commit is contained in:
@@ -491,13 +491,12 @@ bool NoteData::RowNeedsAtLeastSimultaneousPresses( int iMinSimultaneousPresses,
|
||||
{
|
||||
case TapNote::mine:
|
||||
case TapNote::empty:
|
||||
case TapNote::hold_head: // handled below
|
||||
continue; // skip these types - they don't count
|
||||
}
|
||||
++iNumNotesThisIndex;
|
||||
}
|
||||
|
||||
/* We must have at least one non-hold-body at this row to count it. */
|
||||
/* We must have at least one tap or hold head at this row to count it. */
|
||||
if( !iNumNotesThisIndex )
|
||||
return false;
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ public:
|
||||
|
||||
// This row needs at least iMinSimultaneousPresses either tapped or held.
|
||||
bool RowNeedsAtLeastSimultaneousPresses( int iMinSimultaneousPresses, int row ) const;
|
||||
bool RowNeedsHands( int row ) const { return RowNeedsAtLeastSimultaneousPresses(2,row); }
|
||||
bool RowNeedsHands( int row ) const { return RowNeedsAtLeastSimultaneousPresses(3,row); }
|
||||
|
||||
// Count rows that need iMinSimultaneousPresses either tapped or held.
|
||||
int GetNumRowsWithSimultaneousPresses( int iMinSimultaneousPresses, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ) const;
|
||||
|
||||
Reference in New Issue
Block a user