merge common code
This commit is contained in:
@@ -197,16 +197,14 @@ bool HighScore::operator>=( const HighScore& other ) const
|
|||||||
{
|
{
|
||||||
if( GetPercentDP() != other.GetPercentDP() )
|
if( GetPercentDP() != other.GetPercentDP() )
|
||||||
return GetPercentDP() >= other.GetPercentDP();
|
return GetPercentDP() >= other.GetPercentDP();
|
||||||
else
|
|
||||||
return GetGrade() >= other.GetGrade();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( GetScore() != other.GetScore() )
|
if( GetScore() != other.GetScore() )
|
||||||
return GetScore() >= other.GetScore();
|
return GetScore() >= other.GetScore();
|
||||||
else
|
|
||||||
return GetGrade() >= other.GetGrade();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return GetGrade() >= other.GetGrade();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HighScore::operator==( const HighScore& other ) const
|
bool HighScore::operator==( const HighScore& other ) const
|
||||||
|
|||||||
Reference in New Issue
Block a user