From fad19162595e4a0bbd22c6e891709190a5e1cff5 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 14 Nov 2024 06:24:46 +0100 Subject: [PATCH] psure it should be like this? --- src/d_clisrv.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index d3f7f566c..a0964b0b6 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -6561,6 +6561,14 @@ void NetUpdate(void) if (realtics <= 0) // nothing new to update return; + if (realtics > 5) + { + if (server) + realtics = 1; + else + realtics = 5; + } + #ifdef DEDICATEDIDLETIME if (server && dedicated && gamestate == GS_LEVEL) { @@ -6609,14 +6617,6 @@ void NetUpdate(void) } #endif - if (realtics > 5) - { - if (server) - realtics = 1; - else - realtics = 5; - } - gametime = nowtime; UpdatePingTable(); @@ -6714,6 +6714,9 @@ void NetUpdate(void) } Net_AckTicker(); HandleNodeTimeouts(); + + nowtime /= NEWTICRATERATIO; + if (nowtime > resptime) { resptime = nowtime;