Fixed issue where finishing boats order could be be changed

main
Fan-Wu Yang 8 years ago
parent 4ddc369dbc
commit 6003bdf771

@ -28,7 +28,7 @@ public class Constants {
* 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.
*/
public static final int RaceTimeScale = 1;
public static final int RaceTimeScale = 1*20;
/**
* The race pre-start time, in milliseconds. 30 seconds.

@ -1066,13 +1066,6 @@ public class RaceViewController extends Controller {
}.start();
fp.setSourceID(0);
try {
raceState.getBoat(boat.getSourceID()).setStatus(BoatStatusEnum.DNF);
raceState.updateBoatPositions(raceState.getBoats());
} catch (BoatNotFoundException e) {
e.printStackTrace();
}
}
else
//Speed up tick when <=10 hp

Loading…
Cancel
Save