From 9db9d128915cbb35908b0e0ef93ccd2ac17b72cb Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Sun, 10 Mar 2013 00:16:02 +0000 Subject: [PATCH] next try --- source/glest_game/game/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/game/game.cpp b/source/glest_game/game/game.cpp index 7d05d4e0..4615ca12 100644 --- a/source/glest_game/game/game.cpp +++ b/source/glest_game/game/game.cpp @@ -1742,7 +1742,7 @@ void Game::update() { updateLoops += frameDifference; } //If client is ahead maybe this fixes it ( by titi ): - if(lastNetworkFrameFromServer > 0 && world.getFrameCount() > lastNetworkFrameFromServer && (world.getFrameCount()%gameSettings.getNetworkFramePeriod())==20 ){ + if(lastNetworkFrameFromServer > 0 && world.getFrameCount() > lastNetworkFrameFromServer && (world.getFrameCount()%gameSettings.getNetworkFramePeriod())==19 ){ printf("Client will slow down because no message has arrived yet. currentFrame=%d",world.getFrameCount()); updateLoops = 0; }