fix interaction between scoring and transforms that insert new notes

This commit is contained in:
Chris Danford
2003-08-10 06:23:24 +00:00
parent a2ebcfce01
commit 0e3375ab2d
4 changed files with 21 additions and 9 deletions
+10 -4
View File
@@ -696,9 +696,15 @@ void Player::HandleTapRowScore( unsigned row )
TapNoteScore scoreOfLastTap = LastTapNoteScore(row);
int iNumTapsInRow = 0;
for( int c=0; c<GetNumTracks(); c++ ) // for each column
if( GetTapNote(c, row) != TAP_EMPTY )
int iNumAdditions = 0;
for( int t=0; t<GetNumTracks(); t++ ) // for each column
{
TapNote tn = GetTapNote(t, row);
if( tn != TAP_EMPTY )
iNumTapsInRow++;
if( tn == TAP_ADDITION )
iNumAdditions++;
}
ASSERT(iNumTapsInRow > 0);
@@ -714,10 +720,10 @@ void Player::HandleTapRowScore( unsigned row )
return;
if(m_pPrimaryScoreKeeper)
m_pPrimaryScoreKeeper->HandleTapRowScore(scoreOfLastTap, iNumTapsInRow );
m_pPrimaryScoreKeeper->HandleTapRowScore(scoreOfLastTap, iNumTapsInRow, iNumAdditions );
if(m_pSecondaryScoreKeeper)
m_pSecondaryScoreKeeper->HandleTapRowScore(scoreOfLastTap, iNumTapsInRow );
m_pSecondaryScoreKeeper->HandleTapRowScore(scoreOfLastTap, iNumTapsInRow, iNumAdditions );
if (m_pScore)
m_pScore->SetScore(GAMESTATE->m_CurStageStats.iScore[m_PlayerNumber]);