From 0b1f5b9dac103965c22fe558bd299e4c91aedeef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 24 Jul 2003 19:29:51 +0000 Subject: [PATCH] Huh? iPossibleDancePoints is always >= 0. Is this what you meant? --- stepmania/src/StageStats.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/StageStats.cpp b/stepmania/src/StageStats.cpp index d235228ae0..b16e543a68 100644 --- a/stepmania/src/StageStats.cpp +++ b/stepmania/src/StageStats.cpp @@ -56,9 +56,7 @@ Grade StageStats::GetGrade( PlayerNumber pn ) { ASSERT( GAMESTATE->IsPlayerEnabled(pn) ); // should be calling this is player isn't joined! - // HACK: if dance points is less than 0, chances are they failed. - // I'm not sure if arcade does the same. - if( bFailed[pn] || iPossibleDancePoints[pn] <= 0 ) + if( bFailed[pn] ) return GRADE_E; /* Based on the percentage of your total "Dance Points" to the maximum @@ -93,5 +91,6 @@ Grade StageStats::GetGrade( PlayerNumber pn ) else if( fPercentDancePoints >= 0.80 ) return GRADE_A; else if( fPercentDancePoints >= 0.65 ) return GRADE_B; else if( fPercentDancePoints >= 0.45 ) return GRADE_C; - else return GRADE_D; + else if( fPercentDancePoints >= 0 ) return GRADE_D; + else return GRADE_E; }