use IsRowComplete
This commit is contained in:
@@ -412,25 +412,9 @@ void Player::Step( int col )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (score > TNS_NONE && IsRowComplete(iIndexOverlappingNote, TNS_BOO) )
|
||||||
|
|
||||||
|
|
||||||
if (score > TNS_NONE)
|
|
||||||
{
|
|
||||||
bool bRowDestroyed = true;
|
|
||||||
for( int t=0; t<GetNumTracks(); t++ ) // did this complete the elimination of the row?
|
|
||||||
{
|
|
||||||
if( GetTapNote(t, iIndexOverlappingNote) != TAP_EMPTY && // there is a note here
|
|
||||||
GetTapNoteScore(t, iIndexOverlappingNote) == TNS_NONE ) // and it doesn't have a score
|
|
||||||
{
|
|
||||||
bRowDestroyed = false;
|
|
||||||
break; // stop searching
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if( bRowDestroyed )
|
|
||||||
OnRowDestroyed( score, iIndexOverlappingNote );
|
OnRowDestroyed( score, iIndexOverlappingNote );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if( !bDestroyedNote )
|
if( !bDestroyedNote )
|
||||||
m_GrayArrowRow.Step( col );
|
m_GrayArrowRow.Step( col );
|
||||||
|
|||||||
Reference in New Issue
Block a user