use IsRowComplete

This commit is contained in:
Glenn Maynard
2003-03-26 18:42:44 +00:00
parent 95987e81b8
commit 14b4200f1b
+1 -17
View File
@@ -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 );