]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
another minor cleanup for static entities related to delayed model loading (no bugs...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 23 Jan 2007 19:36:14 +0000 (19:36 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 23 Jan 2007 19:36:14 +0000 (19:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6744 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 4c7161a924978f4f65de0d080239b3a5dbb13bad..d12296436b66a01a23bd16a265094226cd6d5f6c 100644 (file)
@@ -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;
 }