From: havoc Date: Mon, 12 Feb 2007 19:27:57 +0000 (+0000) Subject: changed particleaccumulator check to use >= 1 instead of > 0, hopefully this will... X-Git-Tag: xonotic-v0.1.0preview~3582 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6f66a9af15b9b6ff98946e72621797ba14253841;p=xonotic%2Fdarkplaces.git changed particleaccumulator check to use >= 1 instead of > 0, hopefully this will fix an infinite loop I encountered in testing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6833 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index a80a28b5..c0238225 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -1119,7 +1119,7 @@ void CL_ParticleTrail(int effectnameindex, float pcount, const vec3_t originmins info->particleaccumulator += info->countabsolute + pcount * info->countmultiplier * cl_particles_quality.value; trailstep = 0; } - for (;info->particleaccumulator > 0;info->particleaccumulator--) + for (;info->particleaccumulator >= 1;info->particleaccumulator--) { if (info->tex[1] > info->tex[0]) {