mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Don't submit future ticcmds if they could overwrite a needed ticcmd
This commit is contained in:
parent
2ebd3fcca4
commit
8755582901
1 changed files with 2 additions and 1 deletions
|
@ -4567,7 +4567,8 @@ 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))
|
||||
if ((!!(netcmds[maketic % BACKUPTICS][netconsole].angleturn & TICCMD_RECEIVED))
|
||||
&& (maketic - firstticstosend < BACKUPTICS))
|
||||
faketic++;
|
||||
|
||||
// Copy ticcmd
|
||||
|
|
Loading…
Reference in a new issue