From 34c517defc8e11eaf89d6894a403a977159e6014 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 10 Feb 2025 19:05:44 +0100 Subject: [PATCH] dont add buffer delay when local delay is disabled --- src/d_clisrv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 0c7e238dd..fed263220 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -6700,7 +6700,8 @@ static void UpdatePingTable(void) simulated_lag = lowest_lag; - lowest_lag += (tic_t)cv_netticbuffer.value; // account for netticbufffer + if (lowest_lag != 0) + lowest_lag += (tic_t)cv_netticbuffer.value; // account for netticbufffer pingmeasurecount++; } @@ -6718,7 +6719,8 @@ static void UpdatePingTable(void) simulated_lag = lowest_lag; - lowest_lag += (tic_t)cv_netticbuffer.value; // account for netticbufffer + if (lowest_lag != 0) + lowest_lag += (tic_t)cv_netticbuffer.value; // account for netticbufffer } }