fix step totals being added multiple times

This commit is contained in:
Glenn Maynard
2004-05-24 00:45:22 +00:00
parent af687ecb9d
commit 8540b1eb1f
+4 -2
View File
@@ -885,8 +885,10 @@ void ScreenEvaluation::CommitScores(
Steps* pSteps = GAMESTATE->m_pCurNotes[p]; Steps* pSteps = GAMESTATE->m_pCurNotes[p];
// //
// Add step totals // Add step totals. (In Summary evaluations, we've already done this.)
// //
if( m_Type != summary )
{
int iNumTapsAndHolds = (int) stageStats.fRadarPossible[p][RADAR_NUM_TAPS_AND_HOLDS]; int iNumTapsAndHolds = (int) stageStats.fRadarPossible[p][RADAR_NUM_TAPS_AND_HOLDS];
int iNumJumps = (int) stageStats.fRadarPossible[p][RADAR_NUM_JUMPS]; int iNumJumps = (int) stageStats.fRadarPossible[p][RADAR_NUM_JUMPS];
int iNumHolds = (int) stageStats.fRadarPossible[p][RADAR_NUM_HOLDS]; int iNumHolds = (int) stageStats.fRadarPossible[p][RADAR_NUM_HOLDS];
@@ -894,7 +896,7 @@ void ScreenEvaluation::CommitScores(
int iNumHands = (int) stageStats.fRadarPossible[p][RADAR_NUM_HANDS]; int iNumHands = (int) stageStats.fRadarPossible[p][RADAR_NUM_HANDS];
PROFILEMAN->AddStepTotals( p, iNumTapsAndHolds, iNumJumps, iNumHolds, iNumMines, iNumHands ); PROFILEMAN->AddStepTotals( p, iNumTapsAndHolds, iNumJumps, iNumHolds, iNumMines, iNumHands );
}
// whether or not to save scores when the stage was failed // whether or not to save scores when the stage was failed
// depends on if this is a course or not ... it's handled // depends on if this is a course or not ... it's handled