mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 09:11:02 +00:00
Reverted c2aee1a9cc because this changes
the semantics. The semantics change needs to be discussed further before implementing it at such a critical level.
This commit is contained in:
1 parent
d09e34f8db
commit
1febdae995
1 file changed
+5
-5
+5
-5
@@ -916,11 +916,11 @@ public abstract class AbstractSimpleLeaderboardImpl implements Leaderboard, Race
|
|||||||
// stop counting when competitor finished the race
|
// stop counting when competitor finished the race
|
||||||
to = markPassings.last().getTimePoint();
|
to = markPassings.last().getTimePoint();
|
||||||
} else {
|
} else {
|
||||||
// seems that the last mark passing is not the finish - that means that
|
if (trackedRace.getEndOfTracking() != null
|
||||||
// the competitor did not finish the race - we still want to count
|
&& timePoint.after(trackedRace.getEndOfTracking())) {
|
||||||
// the time until the last mark passing
|
result = null; // race not finished until end of tracking; no reasonable value can be
|
||||||
if (timePoint.after(markPassings.last().getTimePoint())) {
|
// computed for competitor
|
||||||
to = markPassings.last().getTimePoint();
|
break;
|
||||||
} else {
|
} else {
|
||||||
to = timePoint;
|
to = timePoint;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user