mirror of https://github.com/ioquake/ioq3.git
Fix possible delta from invalid entity
This commit is contained in:
parent
62cef99b28
commit
91194bfc3e
|
@ -1,4 +1,4 @@
|
||||||
/*
|
gedit/*
|
||||||
===========================================================================
|
===========================================================================
|
||||||
Copyright (C) 1999-2005 Id Software, Inc.
|
Copyright (C) 1999-2005 Id Software, Inc.
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ void CL_ParseSnapshot( msg_t *msg ) {
|
||||||
// The frame that the server did the delta from
|
// The frame that the server did the delta from
|
||||||
// is too old, so we can't reconstruct it properly.
|
// is too old, so we can't reconstruct it properly.
|
||||||
Com_Printf ("Delta frame too old.\n");
|
Com_Printf ("Delta frame too old.\n");
|
||||||
} else if ( cl.parseEntitiesNum - old->parseEntitiesNum > MAX_PARSE_ENTITIES-128 ) {
|
} else if ( cl.parseEntitiesNum - old->parseEntitiesNum > MAX_PARSE_ENTITIES - MAX_SNAPSHOT_ENTITIES ) {
|
||||||
Com_Printf ("Delta parseEntitiesNum too old.\n");
|
Com_Printf ("Delta parseEntitiesNum too old.\n");
|
||||||
} else {
|
} else {
|
||||||
newSnap.valid = qtrue; // valid delta parse
|
newSnap.valid = qtrue; // valid delta parse
|
||||||
|
|
Loading…
Reference in New Issue