]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed R_NewExplosion check for dead explosions to check time instead of alpha ...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 May 2005 22:51:36 +0000 (22:51 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 May 2005 22:51:36 +0000 (22:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5263 d7cf8633-e32d-0410-b094-e92efae38249

r_explosion.c

index 74d63bfb9389a5b1a68b63c35de0e5de27c0f9a4..04b79f153a21bef1dc8b3b36fd193eb8b2659203 100644 (file)
@@ -151,7 +151,7 @@ void R_NewExplosion(vec3_t org)
        fractalnoisequick(noise, EXPLOSIONGRID, 4); // adjust noise grid size according to explosion
        for (i = 0, e = explosion;i < MAX_EXPLOSIONS;i++, e++)
        {
-               if (e->alpha <= cl_explosions_alpha_end.value)
+               if (cl.time >= e->endtime)
                {
                        e->starttime = cl.time;
                        e->endtime = cl.time + cl_explosions_lifetime.value;