mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Minor change so that boats still are checked for collision after passing the finish line
#story[1250]
This commit is contained in:
@@ -322,8 +322,8 @@ public class GameState implements Runnable {
|
|||||||
checkPowerUpTimeout(yacht);
|
checkPowerUpTimeout(yacht);
|
||||||
yacht.runAutoPilot();
|
yacht.runAutoPilot();
|
||||||
yacht.updateLocation(timeInterval);
|
yacht.updateLocation(timeInterval);
|
||||||
if (yacht.getBoatStatus() != BoatStatus.FINISHED) {
|
|
||||||
checkCollision(yacht);
|
checkCollision(yacht);
|
||||||
|
if (yacht.getBoatStatus() != BoatStatus.FINISHED) {
|
||||||
checkForLegProgression(yacht);
|
checkForLegProgression(yacht);
|
||||||
raceFinished = false;
|
raceFinished = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ public class MainServerThread implements Runnable, ClientConnectionDelegate {
|
|||||||
GameState.spawnNewToken();
|
GameState.spawnNewToken();
|
||||||
broadcastMessage(MessageFactory.getRaceXML());
|
broadcastMessage(MessageFactory.getRaceXML());
|
||||||
}
|
}
|
||||||
}, 0, 60000);
|
}, 10000, 60000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user