From 48a5f902ea85c017127547a0920b8b970391cec5 Mon Sep 17 00:00:00 2001 From: Pacien Date: Mon, 23 May 2016 12:21:48 +0200 Subject: Fix 1/2 frame skip --- src/ch/epfl/xblast/server/Server.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { while (!gameState.isGameOver()) { long computationStartTime = System.nanoTime(); - gameState = updateGameState(updateGameState(gameState)); + gameState = updateGameState(gameState); broadcastGameState(gameState); Time.sleep(REFRESH_RATE - (computationStartTime - System.nanoTime())); } -- cgit v1.2.3