From ce5643c76a8c3f3b67c3c4cafb6f2f4f6dd11311 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 12 Aug 2005 03:16:21 +0000 Subject: [PATCH] flip logic ("if(!a) b else c" -> "if(a) c else b") --- stepmania/src/HighScore.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/HighScore.cpp b/stepmania/src/HighScore.cpp index 0fab71d1cd..5c33cd3246 100644 --- a/stepmania/src/HighScore.cpp +++ b/stepmania/src/HighScore.cpp @@ -195,17 +195,17 @@ bool HighScore::operator>=( const HighScore& other ) const * is the same. */ if( PREFSMAN->m_bPercentageScoring ) { - if( GetPercentDP() == other.GetPercentDP() ) - return GetGrade() >= other.GetGrade(); - else + if( GetPercentDP() != other.GetPercentDP() ) return GetPercentDP() >= other.GetPercentDP(); + else + return GetGrade() >= other.GetGrade(); } else { - if( GetScore() == other.GetScore() ) - return GetGrade() >= other.GetGrade(); - else + if( GetScore() != other.GetScore() ) return GetScore() >= other.GetScore(); + else + return GetGrade() >= other.GetGrade(); } }