Merge branch 'dont-rewrite-the-past' into 'master'

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

See merge request KartKrew/Kart!1333
This commit is contained in:
Oni 2023-07-24 23:12:41 +00:00 committed by NepDisk
parent 30e63490cd
commit 3eff2ef292

View file

@ -4659,7 +4659,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