]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Made ValidateState warn and not error out about colormap > maxclients.
authortomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 22 Aug 2004 15:37:58 +0000 (15:37 +0000)
committertomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 22 Aug 2004 15:37:58 +0000 (15:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4358 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 18c1f7dfb6ee6db038b6702c73fa31e2dea4dad5..b7fe200e1bcd02595af031eff1365fee46a81650 100644 (file)
@@ -476,7 +476,10 @@ void CL_ValidateState(entity_state_t *s)
 
        // colormap is client index + 1
        if (s->colormap > cl.maxclients)
-               Host_Error ("CL_ValidateState: colormap (%i) > cl.maxclients (%i)", s->colormap, cl.maxclients);
+       {
+               Con_DPrintf("CL_ValidateState: colormap (%i) > cl.maxclients (%i)", s->colormap, cl.maxclients);
+               s->colormap = 0;
+       }
 
        model = cl.model_precache[s->modelindex];
        Mod_CheckLoaded(model);