put HoldNoteScore values in ascending value of goodness, like TapNoteScore values

This commit is contained in:
Chris Danford
2004-08-28 22:29:53 +00:00
parent ffc99a4648
commit cd1fb281c2
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -171,8 +171,8 @@ TapNoteScore StringToTapNoteScore( const CString& str );
enum HoldNoteScore
{
HNS_NONE, // this HoldNote has not been scored yet
HNS_OK, // the HoldNote has passed and was successfully held all the way through
HNS_NG, // the HoldNote has passed and they missed it
HNS_OK, // the HoldNote has passed and was successfully held all the way through
NUM_HOLD_NOTE_SCORES
};
#define FOREACH_HoldNoteScore( hns ) FOREACH_ENUM( HoldNoteScore, NUM_HOLD_NOTE_SCORES, hns )
+2 -3
View File
@@ -148,14 +148,13 @@ Grade StageStats::GetGrade( PlayerNumber pn ) const
};
float Possible = 0, Actual = 0;
int i;
for( i = 0; i < NUM_TAP_NOTE_SCORES; ++i )
FOREACH_TapNoteScore( i )
{
Actual += iTapNoteScores[pn][i] * TapScoreValues[i];
Possible += iTapNoteScores[pn][i] * TapScoreValues[TNS_MARVELOUS];
}
for( i = HNS_OK; i < NUM_HOLD_NOTE_SCORES; ++i )
FOREACH_HoldNoteScore( i )
{
Actual += iHoldNoteScores[pn][i] * HoldScoreValues[i];
Possible += iHoldNoteScores[pn][i] * HoldScoreValues[HNS_OK];