From: havoc Date: Tue, 23 Jan 2007 19:36:14 +0000 (+0000) Subject: another minor cleanup for static entities related to delayed model loading (no bugs... X-Git-Tag: xonotic-v0.1.0preview~3664 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a1b7eb0710994442707c2d2c048b7aef52c4543;p=xonotic%2Fdarkplaces.git another minor cleanup for static entities related to delayed model loading (no bugs involved though) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6744 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index 4c7161a9..d1229643 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -1496,7 +1496,7 @@ void CL_ValidateState(entity_state_t *s) if (!s->active) return; - if (s->modelindex >= MAX_MODELS && (65536-s->modelindex) >= MAX_MODELS) + if (s->modelindex >= MAX_MODELS) Host_Error("CL_ValidateState: modelindex (%i) >= MAX_MODELS (%i)\n", s->modelindex, MAX_MODELS); // colormap is client index + 1 @@ -1615,7 +1615,6 @@ void CL_ParseBaseline (entity_t *ent, int large) ent->state_baseline.origin[i] = MSG_ReadCoord(cls.protocol); ent->state_baseline.angles[i] = MSG_ReadAngle(cls.protocol); } - CL_ValidateState(&ent->state_baseline); ent->state_previous = ent->state_current = ent->state_baseline; }