From 7f60768fe5640135158f04c784775edc6543322e Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 9 May 2005 22:51:36 +0000 Subject: [PATCH] changed R_NewExplosion check for dead explosions to check time instead of alpha (may fix a bug) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5263 d7cf8633-e32d-0410-b094-e92efae38249 --- r_explosion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r_explosion.c b/r_explosion.c index 74d63bfb..04b79f15 100644 --- a/r_explosion.c +++ b/r_explosion.c @@ -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; -- 2.39.2