mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 09:22:43 +00:00
- 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:
parent
950331a1f4
commit
61f819b5c9
1 changed files with 7 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue