From bdc992aff1a18985666d5791344136128e9e33cd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 1 Feb 2004 05:21:51 +0000 Subject: [PATCH] fix AAAA/AAA --- stepmania/src/StageStats.cpp | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/stepmania/src/StageStats.cpp b/stepmania/src/StageStats.cpp index 45114c31a3..7ba671f194 100644 --- a/stepmania/src/StageStats.cpp +++ b/stepmania/src/StageStats.cpp @@ -197,17 +197,30 @@ Grade StageStats::GetGrade( PlayerNumber pn ) const } } - if( PREFSMAN->m_bGradeTier02IsAllPerfects && - 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_2; + LOG->Trace( "GetGrade: Grade: %s, %i", GradeToString(grade).c_str(), PREFSMAN->m_bGradeTier02IsAllPerfects ); + 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; - LOG->Trace( "GetGrade: Grade: %s", GradeToString(grade).c_str() ); + if( 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_2; + + return max( grade, GRADE_TIER_3 ); + } return grade; }