Skip to content

Commit

Permalink
Fix possible delta from invalid entity
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Feb 12, 2013
1 parent 62cef99 commit 91194bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/client/cl_parse.c
@@ -1,4 +1,4 @@
/*
gedit/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 91194bf

Please sign in to comment.