Fixed issue where finishing boats order could be be changed
This commit is contained in:
@@ -28,7 +28,7 @@ public class Constants {
|
|||||||
* Frame periods are multiplied by this to get the amount of time a single frame represents.
|
* Frame periods are multiplied by this to get the amount of time a single frame represents.
|
||||||
* E.g., frame period = 20ms, scale = 5, frame represents 20 * 5 = 100ms, and so boats are simulated for 100ms, even though only 20ms actually occurred.
|
* E.g., frame period = 20ms, scale = 5, frame represents 20 * 5 = 100ms, and so boats are simulated for 100ms, even though only 20ms actually occurred.
|
||||||
*/
|
*/
|
||||||
public static final int RaceTimeScale = 1;
|
public static final int RaceTimeScale = 1*20;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The race pre-start time, in milliseconds. 30 seconds.
|
* The race pre-start time, in milliseconds. 30 seconds.
|
||||||
|
|||||||
@@ -1066,13 +1066,6 @@ public class RaceViewController extends Controller {
|
|||||||
}.start();
|
}.start();
|
||||||
|
|
||||||
fp.setSourceID(0);
|
fp.setSourceID(0);
|
||||||
try {
|
|
||||||
raceState.getBoat(boat.getSourceID()).setStatus(BoatStatusEnum.DNF);
|
|
||||||
|
|
||||||
raceState.updateBoatPositions(raceState.getBoats());
|
|
||||||
} catch (BoatNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
//Speed up tick when <=10 hp
|
//Speed up tick when <=10 hp
|
||||||
|
|||||||
Reference in New Issue
Block a user