put HoldNoteScore values in ascending value of goodness, like TapNoteScore values
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user