Jared's Oni life fix. Add a comment.

This commit is contained in:
Glenn Maynard
2002-10-24 05:24:56 +00:00
parent fcc020dd98
commit 5cb5e68a6a
+12 -10
View File
@@ -483,28 +483,30 @@ void Player::OnRowDestroyed( int iIndexThatWasSteppedOn )
// } // }
// if ( score==TNS_PERFECT || score == TNS_GREAT || bHoldNoteOnThisBeat ) /* If the whole row was hit with perfects or greats, remove the row
* from the NoteField, so it disappears. */
if ( score==TNS_PERFECT || score == TNS_GREAT ) if ( score==TNS_PERFECT || score == TNS_GREAT )
m_NoteField.RemoveTapNoteRow( iIndexThatWasSteppedOn ); m_NoteField.RemoveTapNoteRow( iIndexThatWasSteppedOn );
int iNumNotesInThisRow = 0;
for( int c=0; c<m_iNumTracks; c++ ) // for each column for( int c=0; c<m_iNumTracks; c++ ) // for each column
{ {
int iNumNotesInThisRow = 0;
if( m_TapNotes[c][iIndexThatWasSteppedOn] != '0' ) // if there is a note in this col if( m_TapNotes[c][iIndexThatWasSteppedOn] != '0' ) // if there is a note in this col
{ {
iNumNotesInThisRow++; iNumNotesInThisRow++;
m_GhostArrowRow.TapNote( c, score, m_Combo.GetCurrentCombo()>g_iBrightGhostThreshold ); // show the ghost arrow for this column
}
if( iNumNotesInThisRow > 0 ) // show the ghost arrow for this column
{ m_GhostArrowRow.TapNote( c, score, m_Combo.GetCurrentCombo()>g_iBrightGhostThreshold );
HandleNoteScore( score, iNumNotesInThisRow ); // update score - called once per note in this row
m_Combo.UpdateScore( score, iNumNotesInThisRow );
GAMESTATE->m_iMaxCombo[m_PlayerNumber] = max( GAMESTATE->m_iMaxCombo[m_PlayerNumber], m_Combo.GetCurrentCombo() );
} }
} }
if( iNumNotesInThisRow > 0 )
{
HandleNoteScore( score, iNumNotesInThisRow ); // update score
m_Combo.UpdateScore( score, iNumNotesInThisRow );
GAMESTATE->m_iMaxCombo[m_PlayerNumber] = max( GAMESTATE->m_iMaxCombo[m_PlayerNumber], m_Combo.GetCurrentCombo() );
}
// update the judgement, score, and life // update the judgement, score, and life
m_Judgement.SetJudgement( score ); m_Judgement.SetJudgement( score );