mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-27 13:31:43 +00:00
Fix underflow in consistancy checking code
This commit is contained in:
parent
ddec491b0b
commit
69c4a6ee4c
1 changed files with 1 additions and 1 deletions
|
|
@ -4067,7 +4067,7 @@ static void HandlePacketFromPlayer(SINT8 node)
|
|||
&netbuffer->u.client2pak.cmd2, 1);
|
||||
|
||||
// Check player consistancy during the level
|
||||
if (realstart <= gametic && realstart > gametic - BACKUPTICS+1 && gamestate == GS_LEVEL
|
||||
if (realstart <= gametic && realstart + BACKUPTICS - 1 > gametic && gamestate == GS_LEVEL
|
||||
&& consistancy[realstart%BACKUPTICS] != SHORT(netbuffer->u.clientpak.consistancy)
|
||||
&& !resendingsavegame[node])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue