Stop negative tic counts from corrupting messages
This commit is contained in:
parent
42e6737803
commit
c661da2995
2 changed files with 2 additions and 2 deletions
|
|
@ -1173,7 +1173,7 @@ void NetUpdate (void)
|
|||
netbuffer[k++] = lowtic;
|
||||
}
|
||||
|
||||
numtics = lowtic - realstart;
|
||||
numtics = MAX(0, lowtic - realstart);
|
||||
if (numtics > BACKUPTICS)
|
||||
I_Error ("NetUpdate: Node %d missed too many tics", i);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue