Added possibility to change the pass id - that enables setting a start time in the past

This commit is contained in:
Simon Pamies committed 2014-06-08 15:41:32 +02:00
1 parent 4238bd9345
commit fdeb64bca4
6 files changed
+20 -5

No files matched your search

@@ -2530,6 +2530,9 @@ public class RacingEventServiceImpl implements RacingEventServiceWithTestSupport
RaceLog raceLog = getRaceLog(leaderboardName, raceColumnName, fleetName);
if (raceLog != null) {
RaceState state = RaceStateImpl.create(raceLog, new RaceLogEventAuthorImpl(authorName, authorPriority));
if (passId > raceLog.getCurrentPassId()) {
state.setAdvancePass(logicalTimePoint);
}
state.setRacingProcedure(logicalTimePoint, racingProcedure);
state.forceNewStartTime(logicalTimePoint, startTime);
return state.getStartTime();