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
1 changed files with 2 additions and 2 deletions

View File

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