fix hands counting
This commit is contained in:
@@ -491,13 +491,12 @@ bool NoteData::RowNeedsAtLeastSimultaneousPresses( int iMinSimultaneousPresses,
|
|||||||
{
|
{
|
||||||
case TapNote::mine:
|
case TapNote::mine:
|
||||||
case TapNote::empty:
|
case TapNote::empty:
|
||||||
case TapNote::hold_head: // handled below
|
|
||||||
continue; // skip these types - they don't count
|
continue; // skip these types - they don't count
|
||||||
}
|
}
|
||||||
++iNumNotesThisIndex;
|
++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 )
|
if( !iNumNotesThisIndex )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ public:
|
|||||||
|
|
||||||
// This row needs at least iMinSimultaneousPresses either tapped or held.
|
// This row needs at least iMinSimultaneousPresses either tapped or held.
|
||||||
bool RowNeedsAtLeastSimultaneousPresses( int iMinSimultaneousPresses, int row ) const;
|
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.
|
// Count rows that need iMinSimultaneousPresses either tapped or held.
|
||||||
int GetNumRowsWithSimultaneousPresses( int iMinSimultaneousPresses, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ) const;
|
int GetNumRowsWithSimultaneousPresses( int iMinSimultaneousPresses, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user