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
commit 0b5cae201e

View file

@ -5196,7 +5196,8 @@ static void HandlePacketFromPlayer(SINT8 node)
// If we already received a ticcmd for this tic, just submit it for the next one. // If we already received a ticcmd for this tic, just submit it for the next one.
tic_t faketic = maketic; tic_t faketic = maketic;
if (!!(netcmds[maketic % BACKUPTICS][netconsole].flags & TICCMD_RECEIVED)) if ((!!(netcmds[maketic % BACKUPTICS][netconsole].flags & TICCMD_RECEIVED))
&& (maketic - firstticstosend < BACKUPTICS))
faketic++; faketic++;
// Copy ticcmd // Copy ticcmd