Stop negative tic counts from corrupting messages

This commit is contained in:
Edward Richardson 2014-08-20 19:41:07 +12:00
commit c661da2995
2 changed files with 2 additions and 2 deletions

View file

@ -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);