simplify
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user