From: havoc Date: Thu, 10 Jan 2013 05:36:54 +0000 (+0000) Subject: fix effectinfo.txt trail effects which were honoring the (time-based) X-Git-Tag: xonotic-v0.8.0~96^2~161 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d00aedb40af0c386f3e04030c07e348da28aff99;p=xonotic%2Fdarkplaces.git 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 --- 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);