Include last sync frame in desync crash log

This commit is contained in:
Jonathan G Rennison
2021-04-01 01:59:48 +01:00
parent dc8680eec5
commit 425b725eab
4 changed files with 23 additions and 0 deletions

View File

@@ -333,6 +333,9 @@ void ClientNetworkGameSocketHandler::ClientError(NetworkRecvStatus res)
my_client->ClientError(NETWORK_RECV_STATUS_DESYNC);
return false;
}
_last_sync_date = _date;
_last_sync_date_fract = _date_fract;
_last_sync_tick_skip_counter = _tick_skip_counter;
/* If this is the first time we have a sync-frame, we
* need to let the server know that we are ready and at the same