From: havoc Date: Sun, 2 Mar 2008 15:28:42 +0000 (+0000) Subject: added a dprint for unknown effect numbers X-Git-Tag: xonotic-v0.1.0preview~2344 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=78c10bc60160ddf0f58f9e9d2d74fc63b1c68291;p=xonotic%2Fdarkplaces.git added a dprint for unknown effect numbers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8180 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index d0e75886..9647bdcf 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -1119,7 +1119,10 @@ void CL_ParticleTrail(int effectnameindex, float pcount, const vec3_t originmins vec3_t center; qboolean found = false; if (effectnameindex < 1 || effectnameindex >= MAX_PARTICLEEFFECTNAME) + { + Con_DPrintf("Unknown effect number %i received from server\n", effectnameindex); return; // invalid effect index + } if (!particleeffectname[effectnameindex][0]) return; // no such effect VectorLerp(originmins, 0.5, originmaxs, center);