Skip to content

Commit

Permalink
use wife score in highscore operators since we have at least converte…
Browse files Browse the repository at this point in the history
…d values for each score
  • Loading branch information
MinaciousGrace committed Apr 12, 2017
1 parent d31d1ef commit 3f0ed1a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f0ed1a

Please sign in to comment.