|
|
|
@ -217,9 +217,9 @@ public abstract class Race implements Runnable {
|
|
|
|
|
|
|
|
|
|
|
|
for (Boat boat : startingBoats) {
|
|
|
|
for (Boat boat : startingBoats) {
|
|
|
|
if (boat != null && !boat.isFinished()) {
|
|
|
|
if (boat != null && !boat.isFinished()) {
|
|
|
|
boat.addTrackPoint(boat.getCurrentPosition());
|
|
|
|
|
|
|
|
updatePosition(boat, Math.round(1000 / lastFPS) > 20 ? 15 : Math.round(1000 / lastFPS));
|
|
|
|
updatePosition(boat, Math.round(1000 / lastFPS) > 20 ? 15 : Math.round(1000 / lastFPS));
|
|
|
|
checkPosition(boat, totalTimeElapsed);
|
|
|
|
checkPosition(boat, totalTimeElapsed);
|
|
|
|
|
|
|
|
boat.addTrackPoint(boat.getCurrentPosition());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (timerEnabled)
|
|
|
|
if (timerEnabled)
|
|
|
|
|