fix colormap checking in ValidateState, it was throwing out RENDER_COLORMAPPED colorm...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 21:28:58 +0000 (21:28 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 21:28:58 +0000 (21:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4593 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index a93c505..c67225d 100644 (file)
@@ -473,7 +473,7 @@ void CL_ValidateState(entity_state_t *s)
                Host_Error("CL_ValidateState: modelindex (%i) >= MAX_MODELS (%i)\n", s->modelindex, MAX_MODELS);
 
        // colormap is client index + 1
-       if (s->colormap > cl.maxclients)
+       if ((!s->flags & RENDER_COLORMAPPED) && s->colormap > cl.maxclients)
        {
                Con_DPrintf("CL_ValidateState: colormap (%i) > cl.maxclients (%i)\n", s->colormap, cl.maxclients);
                s->colormap = 0;