mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-07 04:41:00 +00:00
fixed ordering of competitors if one is already in next leg
This commit is contained in:
1 parent
25890c48c4
commit
1d9ef4d9f3
1 file changed
+2
-2
+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;
|
||||
|
||||
Reference in new issue
Block a user