flip logic ("if(!a) b else c" -> "if(a) c else b")

This commit is contained in:
Glenn Maynard
2005-08-12 03:16:21 +00:00
parent 643d264ce0
commit ce5643c76a
+6 -6
View File
@@ -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();
}
}