- further error checking rearangements, putting the "old packet" check

first, and making it a Con_DPrintf that just invalidates that packet
This commit is contained in:
Adam Olsen 2001-10-30 02:29:04 +00:00
parent 950331a1f4
commit 61f819b5c9
1 changed files with 7 additions and 7 deletions

View File

@ -252,15 +252,15 @@ CL_ParseDeltaPacketEntities ()
oldpacket = cl.frames[newpacket].delta_sequence;
if ((block.from & UPDATE_MASK) != (oldpacket & UPDATE_MASK)) {
Host_NetError ("CL_ParseDeltaPacketEntities: from mismatch\n");
return;
}
if (cls.netchan.outgoing_sequence - oldpacket >= UPDATE_BACKUP - 1) {
// we can't use this, it is too old
Host_NetError ("CL_ParseDeltaPacketEntities: old packet\n");
// cl.validsequence = 0; // can't render a frame
// cl.frames[newpacket].invalid = true;
Con_DPrintf ("CL_ParseDeltaPacketEntities: old packet\n");
cl.validsequence = 0; // can't render a frame
cl.frames[newpacket].invalid = true;
return;
}
if ((block.from & UPDATE_MASK) != (oldpacket & UPDATE_MASK)) {
Host_NetError ("CL_ParseDeltaPacketEntities: from mismatch\n");
return;
}
if (oldpacket == -1) {