From 5583fab380627ba71a68542e12d071f60d203aae Mon Sep 17 00:00:00 2001
From: lordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Thu, 17 Jan 2002 01:09:28 +0000
Subject: [PATCH] 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
---
 cl_particles.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

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)
-- 
2.39.5