Fix clients being behind one tick at all times

This commit is contained in:
Matt 2019-05-18 19:45:12 +02:00
parent d7074e65a2
commit 83511c5c7f
No known key found for this signature in database
GPG Key ID: 6D4C24A61C93E208
1 changed files with 2 additions and 3 deletions

View File

@ -230,10 +230,9 @@ void GameState::UpdateLogic()
if (network_get_mode() == NETWORK_MODE_CLIENT && network_get_status() == NETWORK_STATUS_CONNECTED
&& network_get_authstatus() == NETWORK_AUTH_OK)
{
// Can't be in sync with server, round trips won't work if we are at same level.
if (gCurrentTicks >= network_get_server_tick())
// Don't run ahead of the server but can be on same tick.
if (gCurrentTicks > network_get_server_tick())
{
// Don't run past the server
return;
}
}