Minor change so that boats still are checked for collision after passing the finish line

#story[1250]
This commit is contained in:
William Muir
2017-09-11 16:53:12 +12:00
parent 534eaee8ce
commit fdfb5959fa
2 changed files with 2 additions and 2 deletions
@@ -322,8 +322,8 @@ public class GameState implements Runnable {
checkPowerUpTimeout(yacht);
yacht.runAutoPilot();
yacht.updateLocation(timeInterval);
checkCollision(yacht);
if (yacht.getBoatStatus() != BoatStatus.FINISHED) {
checkCollision(yacht);
checkForLegProgression(yacht);
raceFinished = false;
}
@@ -191,7 +191,7 @@ public class MainServerThread implements Runnable, ClientConnectionDelegate {
GameState.spawnNewToken();
broadcastMessage(MessageFactory.getRaceXML());
}
}, 0, 60000);
}, 10000, 60000);
}
/**