flip logic ("if(!a) b else c" -> "if(a) c else b")
This commit is contained in:
@@ -195,17 +195,17 @@ bool HighScore::operator>=( const HighScore& other ) const
|
|||||||
* is the same. */
|
* is the same. */
|
||||||
if( PREFSMAN->m_bPercentageScoring )
|
if( PREFSMAN->m_bPercentageScoring )
|
||||||
{
|
{
|
||||||
if( GetPercentDP() == other.GetPercentDP() )
|
if( GetPercentDP() != other.GetPercentDP() )
|
||||||
return GetGrade() >= other.GetGrade();
|
|
||||||
else
|
|
||||||
return GetPercentDP() >= other.GetPercentDP();
|
return GetPercentDP() >= other.GetPercentDP();
|
||||||
|
else
|
||||||
|
return GetGrade() >= other.GetGrade();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( GetScore() == other.GetScore() )
|
if( GetScore() != other.GetScore() )
|
||||||
return GetGrade() >= other.GetGrade();
|
|
||||||
else
|
|
||||||
return GetScore() >= other.GetScore();
|
return GetScore() >= other.GetScore();
|
||||||
|
else
|
||||||
|
return GetGrade() >= other.GetGrade();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user