Merge branch 'faketic-fix' into 'next'

Fix minor off-by-one error in faketic calculation

See merge request STJr/SRB2!2077
This commit is contained in:
Sal 2023-08-01 02:29:05 +00:00
commit 8630dd1644

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