From 232a3c10b07cea21a9df043c5725cd35bd7de28e Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 20 Jul 2006 06:42:25 +0000 Subject: [PATCH] Nudge these together. --- stepmania/src/Player.cpp | 61 +++++++++++++--------------------------- 1 file changed, 20 insertions(+), 41 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 754089ba36..cb38a2dd81 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -1290,51 +1290,30 @@ void Player::OnRowCompletelyJudged( int iIndexThatWasSteppedOn ) /* Find the final score of the row. This will never be TNS_None, since this * function is only called when a row is completed. */ - const Game *pCurGame = GAMESTATE->m_pCurGame; PlayerNumber pn = m_pPlayerState->m_PlayerNumber; + bool bSeparately = GAMESTATE->GetCurrentGame()->m_bCountNotesSeparately; + + const TapNoteResult &lastTNR = NoteDataWithScoring::LastTapNoteWithResult( m_NoteData, iIndexThatWasSteppedOn, pn ).result; + ASSERT( lastTNR.tns != TNS_None ); + ASSERT( lastTNR.tns != TNS_HitMine ); + ASSERT( lastTNR.tns != TNS_AvoidMine ); - if( !pCurGame->m_bCountNotesSeparately ) + for( int c = 0; c < m_NoteData.GetNumTracks(); ++c ) { - TapNoteResult tnr = NoteDataWithScoring::LastTapNoteWithResult( m_NoteData, iIndexThatWasSteppedOn, pn ).result; - TapNoteScore score = tnr.tns; - - ASSERT( score != TNS_None ); - ASSERT( score != TNS_HitMine ); - ASSERT( score != TNS_AvoidMine ); - - /* If the whole row was hit with perfects or greats, remove the row - * from the NoteField, so it disappears. */ - - for( int c=0; c