diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-02-11 20:36:14 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-02-16 21:54:34 +0000 |
commit | 1a7969cc1bf4279675c98d5e0fca8cf2c79cd2b0 (patch) | |
tree | fee3fbe01d29aa42f4368407a5d5d44b4a6f4c02 | |
parent | 737b809094613cf58c91c50044b6e3bfab3ba4bf (diff) |
Fix possible delta from invalid entity
-rw-r--r-- | src/client/cl_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/cl_parse.c b/src/client/cl_parse.c index 1b74ba38..8c0a3437 100644 --- a/src/client/cl_parse.c +++ b/src/client/cl_parse.c @@ -1,4 +1,4 @@ -/* +gedit/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. Copyright (C) 2000-2009 Darklegion Development @@ -253,7 +253,7 @@ void CL_ParseSnapshot( msg_t *msg ) { // The frame that the server did the delta from // is too old, so we can't reconstruct it properly. 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"); } else { newSnap.valid = qtrue; // valid delta parse |