From 599c87f62734da5e1db87e8ef1f1341218b21461 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sun, 16 Jul 2023 01:18:23 -0700 Subject: [PATCH] Don't rewrite the past if we might still need to send it --- src/d_clisrv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index d5023265f..d03bffcad 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -5173,7 +5173,8 @@ static void HandlePacketFromPlayer(SINT8 node) // If we already received a ticcmd for this tic, just submit it for the next one. tic_t faketic = maketic; - if (!!(netcmds[maketic % BACKUPTICS][netconsole].flags & TICCMD_RECEIVED)) + if ((!!(netcmds[maketic % BACKUPTICS][netconsole].flags & TICCMD_RECEIVED)) + && (maketic - firstticstosend < BACKUPTICS)) faketic++; // Copy ticcmd