From 8931522627995eca0ee50ae7a15877bdef9d3f3f Mon Sep 17 00:00:00 2001 From: toaster 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 9d15b8884..19c45d82b 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -5625,6 +5625,9 @@ boolean D_IsPlayerHumanAndGaming (INT32 player_number) 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]; }