]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
passing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Feb 2002 10:30:25 +0000 (10:30 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Feb 2002 10:30:25 +0000 (10:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1481 d7cf8633-e32d-0410-b094-e92efae38249

cl_light.c

index be8ab869cfbfd6bdf679c99e231e18253df778cf..68cb9e768d57d8d395106cfd31298f92cee445cd 100644 (file)
@@ -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;
 }