]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added a dprint for unknown effect numbers
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 Mar 2008 15:28:42 +0000 (15:28 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 Mar 2008 15:28:42 +0000 (15:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8180 d7cf8633-e32d-0410-b094-e92efae38249

cl_particles.c

index d0e75886cebf9c58dae2792bc2514c8fcc66c912..9647bdcf1ddb1a31977b8118829e9cb0c4fd4547 100644 (file)
@@ -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);