use IsRowComplete

This commit is contained in:
Glenn Maynard
2003-03-26 18:42:44 +00:00
parent 95987e81b8
commit 14b4200f1b
+2 -18
View File
@@ -412,24 +412,8 @@ void Player::Step( int col )
}
}
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 );
}
if (score > TNS_NONE && IsRowComplete(iIndexOverlappingNote, TNS_BOO) )
OnRowDestroyed( score, iIndexOverlappingNote );
}
if( !bDestroyedNote )