From b8412cec964edce615d424278052d07d2a9465da Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 31 Mar 2024 23:22:26 +0200 Subject: [PATCH] Fix minor off-by-one error in faketic calculation --- src/d_clisrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 2b52216b9..1d1a0894b 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -5082,7 +5082,7 @@ static void HandlePacketFromPlayer(SINT8 node) // If we've alredy received a ticcmd for this tic, just submit it for the next one. tic_t faketic = maketic; if ((!!(netcmds[maketic % TICQUEUE][netconsole].angleturn & TICCMD_RECEIVED)) - && (maketic - firstticstosend < TICQUEUE)) + && (maketic - firstticstosend < TICQUEUE - 1)) faketic++; // Don't do anything for packets of type NODEKEEPALIVE?