From ee3da99b8e618c31c4a1ca03a2a7578cdd6c2365 Mon Sep 17 00:00:00 2001 From: John FrostFox <john.frostfox@gmail.com> Date: Sat, 16 Oct 2021 20:17:31 +0300 Subject: [PATCH] Netticbuffer fix --- src/d_clisrv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 4daff6e22..10d484b16 100755 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -5240,8 +5240,8 @@ void TryRunTics(tic_t realtics, tic_t entertic) gameTicBuffer[gametic % MAXSIMULATIONS][i] = netcmds[(gametic - 1) % BACKUPTICS][i]; } // Leave a certain amount of tics present in the net buffer as long as we've ran at least one tic this frame. - if (client && gamestate == GS_LEVEL && leveltime > 3 && neededtic <= gametic + cv_netticbuffer.value) - if (!canSimulate) //do not use the vanilla netbuffer or simulations will be doubled/tripled/so on + if (!canSimulate) //do not use the vanilla netbuffer or simulations will be doubled/tripled/so on + if (client && gamestate == GS_LEVEL && leveltime > 3 && neededtic <= gametic + cv_netticbuffer.value) break; } } -- GitLab