Fix minor off-by-one error in faketic calculation

This commit is contained in:
Alug committed 2024-03-31 23:22:26 +02:00
1 parent 1074a9e1d2
commit b8412cec96
1 file changed
+1 -1
+1 -1
View File
@@ -5082,7 +5082,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 % TICQUEUE][netconsole].angleturn & TICCMD_RECEIVED))
&& (maketic - firstticstosend < TICQUEUE))
&& (maketic - firstticstosend < TICQUEUE - 1))
faketic++;
// Don't do anything for packets of type NODEKEEPALIVE?