From 3f0ed1a197be38888f7bb566c9b0c54a1c627dd7 Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Wed, 12 Apr 2017 12:09:31 -0400 Subject: [PATCH] use wife score in highscore operators since we have at least converted values for each score --- src/HighScore.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/HighScore.cpp b/src/HighScore.cpp index 9320fec917..9dcf43de43 100644 --- a/src/HighScore.cpp +++ b/src/HighScore.cpp @@ -518,20 +518,7 @@ RString *HighScore::GetNameMutable() { return &m_Impl->sName; } bool HighScore::operator<(HighScore const& other) const { - /* Make sure we treat AAAA as higher than AAA, even though the score - * is the same. */ - if( PREFSMAN->m_bPercentageScoring ) - { - if( GetPercentDP() != other.GetPercentDP() ) - return GetPercentDP() < other.GetPercentDP(); - } - else - { - if( GetScore() != other.GetScore() ) - return GetScore() < other.GetScore(); - } - - return GetGrade() < other.GetGrade(); + return GetWifeScore() < other.GetWifeScore(); } bool HighScore::operator>(HighScore const& other) const