fix hands counting

This commit is contained in:
Glenn Maynard
2005-03-23 10:37:36 +00:00
parent 42ab776fe3
commit 34b8c2a01a
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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;
+1 -1
View File
@@ -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;