From: lordhavoc Date: Thu, 17 Jan 2002 01:09:28 +0000 (+0000) Subject: removed (experimental, and broken) particles with polygonal explosion (after some... X-Git-Tag: RELEASE_0_2_0_RC1~721 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=5583fab380627ba71a68542e12d071f60d203aae;ds=sidebyside removed (experimental, and broken) particles with polygonal explosion (after some testing I found it looked lousy) fixed particles disappearing when using slowmo 0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1351 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 6ef9c924..6bb31d8c 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -378,15 +378,7 @@ void CL_ParticleExplosion (vec3_t org, int smoke) } } else - { R_NewExplosion(org); - - for (i = 0;i < 256;i++) - { - VectorRandom(v); - particle(pt_spark, explosparkramp[rand()&7], tex_particle, false, 2, lhrandom(16, 255), 9999, 1.5, end[0], end[1], end[2], v[0] * 384.0f, v[1] * 384.0f, v[2] * 384.0f + 160.0f, 512.0f, 0, 0, 0, 2, 0); - } - } } /* @@ -814,7 +806,10 @@ void CL_MoveParticles (void) // LordHavoc: early out condition if (!cl_numparticles) + { + r_refdef.numparticles = 0; return; + } frametime = cl.time - cl.oldtime; if (!frametime)