Merge branch 'solver-debug-ex' into 'master'

Fix holes in ticcmd pacing (wantdelay bug)

Closes #1643

See merge request kart-krew-dev/ring-racers-internal!2774
This commit is contained in:
AJ Martinez 2025-08-27 00:03:04 +00:00
commit 5de0539316

View file

@ -5553,8 +5553,8 @@ static void HandlePacketFromPlayer(SINT8 node)
// or interp messing with ticcmd send/receive timing. Instead of dropping, submit this
// ticcmd for the next tic, giving us 1 tic of "buffer".
// Remember, if we submitted 2 ticcmds too fast, the next one will probably be too slow!
if ((!!(netcmds[maketic % BACKUPTICS][netconsole].flags & TICCMD_RECEIVED))
&& (maketic - firstticstosend < BACKUPTICS))
if ((!!(netcmds[faketic % BACKUPTICS][netconsole].flags & TICCMD_RECEIVED))
&& (faketic - firstticstosend < BACKUPTICS))
faketic++;
FuzzTiccmd(&netbuffer->u.clientpak.cmd);