diff options
-rw-r--r-- | src/ch/epfl/xblast/server/Server.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/xblast/server/Server.java b/src/ch/epfl/xblast/server/Server.java index 015d771..4674cbb 100644 --- a/src/ch/epfl/xblast/server/Server.java +++ b/src/ch/epfl/xblast/server/Server.java | |||
@@ -294,7 +294,7 @@ public class Server { | |||
294 | 294 | ||
295 | while (!gameState.isGameOver()) { | 295 | while (!gameState.isGameOver()) { |
296 | long computationStartTime = System.nanoTime(); | 296 | long computationStartTime = System.nanoTime(); |
297 | gameState = updateGameState(updateGameState(gameState)); | 297 | gameState = updateGameState(gameState); |
298 | broadcastGameState(gameState); | 298 | broadcastGameState(gameState); |
299 | Time.sleep(REFRESH_RATE - (computationStartTime - System.nanoTime())); | 299 | Time.sleep(REFRESH_RATE - (computationStartTime - System.nanoTime())); |
300 | } | 300 | } |