mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 12:40:58 +00:00
Fix underflow in consistancy checking code
This commit is contained in:
parent
50d2c95470
commit
9f5686ef48
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…
Reference in a new issue