This commit is contained in:
Glenn Maynard
2008-05-13 01:19:15 +00:00
parent 72ab3779ea
commit de4dec1f7b
+1 -5
View File
@@ -368,7 +368,6 @@ bool NoteData::IsHoldNoteAtRow( int iTrack, int iRow, int *pHeadRow ) const
if( pHeadRow == NULL ) if( pHeadRow == NULL )
pHeadRow = &iDummy; pHeadRow = &iDummy;
bool bFoundHead = false;
/* Starting at iRow, search upwards. If we find a TapNote::hold_head, we're within /* Starting at iRow, search upwards. If we find a TapNote::hold_head, we're within
* a hold. If we find a tap, mine or attack, we're not--those never lie within hold * a hold. If we find a tap, mine or attack, we're not--those never lie within hold
* notes. Ignore autoKeysound. */ * notes. Ignore autoKeysound. */
@@ -395,12 +394,9 @@ bool NoteData::IsHoldNoteAtRow( int iTrack, int iRow, int *pHeadRow ) const
continue; continue;
DEFAULT_FAIL( tn.type ); DEFAULT_FAIL( tn.type );
} }
if( bFoundHead )
break;
} }
return bFoundHead; return false;
} }
bool NoteData::IsEmpty() const bool NoteData::IsEmpty() const