From: lordhavoc Date: Sun, 3 Feb 2002 10:30:25 +0000 (+0000) Subject: passing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0 X-Git-Tag: RELEASE_0_2_0_RC1~664 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ed996e36593931c7c6bb4eec613751cc9f800500;p=xonotic%2Fdarkplaces.git passing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1481 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_light.c b/cl_light.c index be8ab869..68cb9e76 100644 --- a/cl_light.c +++ b/cl_light.c @@ -40,7 +40,10 @@ dlightsetup: dl->color[1] = green; dl->color[2] = blue; dl->decay = decay; - dl->die = cl.time + lifetime; + if (lifetime) + dl->die = cl.time + lifetime; + else + dl->die = 0; }