mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 08:41:11 +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;
|
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) {
|
if (cls.netchan.outgoing_sequence - oldpacket >= UPDATE_BACKUP - 1) {
|
||||||
// we can't use this, it is too old
|
// we can't use this, it is too old
|
||||||
Host_NetError ("CL_ParseDeltaPacketEntities: old packet\n");
|
Con_DPrintf ("CL_ParseDeltaPacketEntities: old packet\n");
|
||||||
// cl.validsequence = 0; // can't render a frame
|
cl.validsequence = 0; // can't render a frame
|
||||||
// cl.frames[newpacket].invalid = true;
|
cl.frames[newpacket].invalid = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ((block.from & UPDATE_MASK) != (oldpacket & UPDATE_MASK)) {
|
||||||
|
Host_NetError ("CL_ParseDeltaPacketEntities: from mismatch\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (oldpacket == -1) {
|
if (oldpacket == -1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue