From 91194bfc3ec1186945e72c23f5db3a05745b6d3b Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 11 Feb 2013 20:36:14 -0600 Subject: [PATCH] Fix possible delta from invalid entity --- code/client/cl_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/client/cl_parse.c b/code/client/cl_parse.c index f64c9da7..7da5b5d1 100644 --- a/code/client/cl_parse.c +++ b/code/client/cl_parse.c @@ -1,4 +1,4 @@ -/* +gedit/* =========================================================================== 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 // 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