From d86081cb8aee1f2fa310869504feed7b25fe0933 Mon Sep 17 00:00:00 2001 From: toaster <rollerorbital@gmail.com> Date: Thu, 25 Aug 2022 18:00:19 +0100 Subject: [PATCH] If the client has caught up to the server -- say, during a wipe -- make GetLag return a ping of zero Should fix the momentarily large ping bug. --- src/d_clisrv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 073d27606..584358d8a 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -6221,6 +6221,9 @@ INT32 D_NumPlayers(void) tic_t GetLag(INT32 node) { + // If the client has caught up to the server -- say, during a wipe -- lag is meaningless. + if (nettics[node] > gametic) + return 0; return gametic - nettics[node]; } -- GitLab