fix AAAA/AAA

This commit is contained in:
Glenn Maynard
2004-02-01 05:21:51 +00:00
parent fe3304d577
commit bdc992aff1
+16 -3
View File
@@ -197,8 +197,20 @@ Grade StageStats::GetGrade( PlayerNumber pn ) const
} }
} }
if( PREFSMAN->m_bGradeTier02IsAllPerfects && LOG->Trace( "GetGrade: Grade: %s, %i", GradeToString(grade).c_str(), PREFSMAN->m_bGradeTier02IsAllPerfects );
iTapNoteScores[pn][TNS_PERFECT] > 0 && if( PREFSMAN->m_bGradeTier02IsAllPerfects )
{
if( iTapNoteScores[pn][TNS_MARVELOUS] > 0 &&
iTapNoteScores[pn][TNS_PERFECT] == 0 &&
iTapNoteScores[pn][TNS_GREAT] == 0 &&
iTapNoteScores[pn][TNS_GOOD] == 0 &&
iTapNoteScores[pn][TNS_BOO] == 0 &&
iTapNoteScores[pn][TNS_MISS] == 0 &&
iTapNoteScores[pn][TNS_HIT_MINE] == 0 &&
iHoldNoteScores[pn][HNS_NG] == 0 )
return GRADE_TIER_1;
if( iTapNoteScores[pn][TNS_PERFECT] > 0 &&
iTapNoteScores[pn][TNS_GREAT] == 0 && iTapNoteScores[pn][TNS_GREAT] == 0 &&
iTapNoteScores[pn][TNS_GOOD] == 0 && iTapNoteScores[pn][TNS_GOOD] == 0 &&
iTapNoteScores[pn][TNS_BOO] == 0 && iTapNoteScores[pn][TNS_BOO] == 0 &&
@@ -207,7 +219,8 @@ Grade StageStats::GetGrade( PlayerNumber pn ) const
iHoldNoteScores[pn][HNS_NG] == 0 ) iHoldNoteScores[pn][HNS_NG] == 0 )
return GRADE_TIER_2; return GRADE_TIER_2;
LOG->Trace( "GetGrade: Grade: %s", GradeToString(grade).c_str() ); return max( grade, GRADE_TIER_3 );
}
return grade; return grade;
} }