lets try (again) if this makes things less choppy

This commit is contained in:
Titus Tscharntke 2013-03-16 23:05:11 +00:00
parent 44a498958c
commit b6b0e989da
1 changed files with 4 additions and 4 deletions

View File

@ -1742,10 +1742,10 @@ 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())==19 ){
// printf("Client will slow down because no message has arrived yet. currentFrame=%d \n",world.getFrameCount());
// updateLoops = 0;
// }
if(lastNetworkFrameFromServer > 0 && world.getFrameCount() > lastNetworkFrameFromServer && (world.getFrameCount()%gameSettings.getNetworkFramePeriod())==19 ){
printf("Client will slow down because no message has arrived yet. currentFrame=%d \n",world.getFrameCount());
updateLoops = 0;
}
}
}