shithub: choc

Download patch

ref: b9cf256e8955779e9cb2b8284e5291145e9873f9
parent: a03d93810b22294c8c4f2e466bba8795f81b9193
author: Simon Howard <fraggle@soulsphere.org>
date: Tue Jan 29 18:17:33 EST 2019

net: Fix log message when tic is stored.

Also add equivalent message to server code.

--- a/src/net_client.c
+++ b/src/net_client.c
@@ -738,7 +738,7 @@
 
         recvobj->active = true;
         recvobj->cmd = cmd;
-        NET_Log("client: stored tic %d in receive window", seq);
+        NET_Log("client: stored tic %d in receive window", seq + i);
 
         // If a packet is lost or arrives out of order, we might get
         // the tic in the next packet instead (because of extratic).
--- a/src/net_server.c
+++ b/src/net_server.c
@@ -1186,6 +1186,7 @@
         recvobj->latency = latency;
 
         client->last_gamedata_time = nowtime;
+        NET_Log("server: stored tic %d for player %d", seq + i, player);
     }
 
     // Higher acknowledgement point?