This commit is contained in:
Titus Tscharntke 2013-03-10 00:16:02 +00:00
parent 7263274d51
commit 9db9d12891

View File

@ -1742,7 +1742,7 @@ void Game::update() {
updateLoops += frameDifference; updateLoops += frameDifference;
} }
//If client is ahead maybe this fixes it ( by titi ): //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()); printf("Client will slow down because no message has arrived yet. currentFrame=%d",world.getFrameCount());
updateLoops = 0; updateLoops = 0;
} }