From f829265f75541c94bf77443cde75f374d6fc95cf 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 492372dad..4dd881953 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -6499,6 +6499,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) { @@ -6547,14 +6555,6 @@ void NetUpdate(void) } #endif - if (realtics > 5) - { - if (server) - realtics = 1; - else - realtics = 5; - } - gametime = nowtime; UpdatePingTable(); @@ -6652,6 +6652,9 @@ void NetUpdate(void) } Net_AckTicker(); HandleNodeTimeouts(); + + nowtime /= NEWTICRATERATIO; + if (nowtime > resptime) { resptime = nowtime;