]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_light.c
put parentheses around parameters to min/max/bound macros
[xonotic/darkplaces.git] / cl_light.c
index be8ab869cfbfd6bdf679c99e231e18253df778cf..9ab6ea3290da393b7b09cc725f6d41254ae5610e 100644 (file)
@@ -1,3 +1,4 @@
+
 #include "quakedef.h"
 
 dlight_t cl_dlights[MAX_DLIGHTS];
@@ -40,7 +41,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;
 }
 
 
@@ -75,4 +79,3 @@ void CL_DecayLights (void)
        }
 }
 
-