removed (experimental, and broken) particles with polygonal explosion (after some...
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 17 Jan 2002 01:09:28 +0000 (01:09 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 17 Jan 2002 01:09:28 +0000 (01:09 +0000)
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

index 6ef9c92456d95f3a573d6a86719052e3f122f101..6bb31d8c798d1c6a3c95958f80661588d76348b9 100644 (file)
@@ -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)