fixed ordering of competitors if one is already in next leg

This commit is contained in:
Axel Uhl committed 2011-06-22 11:55:21 +02:00
1 parent 25890c48c4
commit 1d9ef4d9f3
1 file changed
+2 -2
@@ -47,10 +47,10 @@ public class WindwardToGoComparator implements Comparator<TrackedLegOfCompetitor
Distance o2d = o2.getWindwardDistanceToGo(timePoint);
result = o1d.compareTo(o2d); // smaller distance to go means smaller rank
} else {
result = 1;
result = -1;
}
} else if (o2.hasStartedLeg(timePoint)) {
result = -1;
result = 1;
} else {
// both did not start the leg:
result = 0;