code/PostSeason/Breakaway/Target.cpp
/**
 * Compare two targets.
 * Compare the score of two targets for the sort function in C++.
 * @param t1 the first Target
 * @param t2 the second Target
 * @return Returns true for the scores of t1 > t2, false otherwise.
 */
Compare two targets.
Compare the score of two targets for the sort function in C++.
@param t1 the first Target
@param t2 the second Target
@return Returns true for the scores of t1 > t2, false otherwise.
Compare two targets . Compare the score of two targets for the sort function in C ++ . @param t1 the first Target @param t2 the second Target @return Returns true for the scores of t1 > t2 false otherwise .
bool compareTargets(Target t1, Target t2)
{
    return t1.m_score > t2.m_score;
#if 0
	if (t1.m_score > t2.m_score) return 1;
	if (t1.m_score < t2.m_score) return -1;
	return 0;
#endif
}
bool compareTargets ( Target t1 , Target t2 ) { return t1 . m_score > t2 . m_score ; #if 0 if ( t1 . m_score > t2 . m_score ) return 1 ; if ( t1 . m_score < t2 . m_score ) return -1 ; return 0 ; #endif }
Compare two targets.
Compare two targets .
// This is apparently a bug. sort() expects a bool compare function.