From 78c10bc60160ddf0f58f9e9d2d74fc63b1c68291 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 2 Mar 2008 15:28:42 +0000 Subject: [PATCH] added a dprint for unknown effect numbers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8180 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_particles.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2