Fix possible delta from invalid entity

This commit is contained in:
Zack Middleton 2013-02-11 20:36:14 -06:00
parent 62cef99b28
commit 91194bfc3e

View file

@ -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