]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
fix colormap checking in ValidateState, it was throwing out RENDER_COLORMAPPED colorm...
[xonotic/darkplaces.git] / cl_parse.c
index a93c505a2a726ef5e85c8a613443f8db01f0cf22..c67225d03e813ca94cd5737455b296c3452999a9 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;