From d00aedb40af0c386f3e04030c07e348da28aff99 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 10 Jan 2013 05:36:54 +0000 Subject: [PATCH] fix effectinfo.txt trail effects which were honoring the (time-based) count parameter, trailspacing now completely overrides the count parameter as was assumed by the previous change (11539) that passed time as count, this only affected network entities (.traileffectnum or .effects or .modelflags) but was clearly broken git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11877 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_particles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_particles.c b/cl_particles.c index d1b3b7a2..dec40e55 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -1568,8 +1568,8 @@ void CL_ParticleTrail(int effectnameindex, float pcount, const vec3_t originmins VectorCopy(originmins, trailpos); if (info->trailspacing > 0) { - info->particleaccumulator += traillen / info->trailspacing * cl_particles_quality.value * pcount; - trailstep = info->trailspacing / cl_particles_quality.value / max(0.001, pcount); + info->particleaccumulator += traillen / info->trailspacing * cl_particles_quality.value; + trailstep = info->trailspacing / cl_particles_quality.value; immediatebloodstain = false; AnglesFromVectors(angles, traildir, NULL, false); -- 2.39.2