Don't rewrite the past if we might still need to send it

This commit is contained in:
AJ Martinez 2023-07-16 01:18:23 -07:00
parent 4feafc99f0
commit 599c87f627

View file

@ -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