Fix minor off-by-one error in faketic calculation

This commit is contained in:
LJ Sonic 2023-07-30 14:26:17 +02:00
parent 205ab612f7
commit 70ec89682e

View file

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