From e2f7895d0dbdbd3fb2a0277178fecc4cfab067b8 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 18 Nov 2010 02:45:31 +0000 Subject: [PATCH] don't spam warnings about bogus frame numbers in states, because FvF does this all the time, developer_extra 1 will reenable these git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10605 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=7e3d1e3957d8b5f7c4586ac3a99af16f63e16c31 --- cl_parse.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cl_parse.c b/cl_parse.c index 66dc588b..60643d63 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -1909,11 +1909,14 @@ void CL_ValidateState(entity_state_t *s) if (!(s->flags & RENDER_COLORMAPPED) && s->colormap > cl.maxclients) Con_DPrintf("CL_ValidateState: colormap (%i) > cl.maxclients (%i)\n", s->colormap, cl.maxclients); - model = CL_GetModelByIndex(s->modelindex); - if (model && model->type && s->frame >= model->numframes) - Con_DPrintf("CL_ValidateState: no such frame %i in \"%s\" (which has %i frames)\n", s->frame, model->name, model->numframes); - if (model && model->type && s->skin > 0 && s->skin >= model->numskins && !(s->lightpflags & PFLAGS_FULLDYNAMIC)) - Con_DPrintf("CL_ValidateState: no such skin %i in \"%s\" (which has %i skins)\n", s->skin, model->name, model->numskins); + if (developer_extra.integer) + { + model = CL_GetModelByIndex(s->modelindex); + if (model && model->type && s->frame >= model->numframes) + Con_DPrintf("CL_ValidateState: no such frame %i in \"%s\" (which has %i frames)\n", s->frame, model->name, model->numframes); + if (model && model->type && s->skin > 0 && s->skin >= model->numskins && !(s->lightpflags & PFLAGS_FULLDYNAMIC)) + Con_DPrintf("CL_ValidateState: no such skin %i in \"%s\" (which has %i skins)\n", s->skin, model->name, model->numskins); + } } void CL_MoveLerpEntityStates(entity_t *ent) -- 2.39.2