From 70ec89682e9928444b3452e5082f20c57c73197f Mon Sep 17 00:00:00 2001 From: LJ Sonic Date: Sun, 30 Jul 2023 14:26:17 +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 c66c8d798..83482b527 100755 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -4584,7 +4584,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 % BACKUPTICS][netconsole].angleturn & TICCMD_RECEIVED)) - && (maketic - firstticstosend < BACKUPTICS)) + && (maketic - firstticstosend < BACKUPTICS - 1)) faketic++; // Copy ticcmd