From e28da8260480813deb08c7acc7babc814c4918be Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 4 Oct 2004 21:28:58 +0000 Subject: [PATCH] fix colormap checking in ValidateState, it was throwing out RENDER_COLORMAPPED colormaps (which are not client numbers) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4593 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_parse.c b/cl_parse.c index a93c505a..c67225d0 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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; -- 2.39.2