]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_light.c
rewrote memory system entirely (hunk, cache, and zone are gone, memory pools replaced...
[xonotic/darkplaces.git] / cl_light.c
index e4b9d4bb0108019fdbc45cbcce5e02efcb8d5bd6..be8ab869cfbfd6bdf679c99e231e18253df778cf 100644 (file)
@@ -2,24 +2,6 @@
 
 dlight_t cl_dlights[MAX_DLIGHTS];
 
-void cl_light_start(void)
-{
-}
-
-void cl_light_shutdown(void)
-{
-}
-
-void cl_light_newmap(void)
-{
-       memset (cl_dlights, 0, sizeof(cl_dlights));
-}
-
-void CL_Light_Init(void)
-{
-       R_RegisterModule("CL_Light", cl_light_start, cl_light_shutdown, cl_light_newmap);
-}
-
 /*
 ===============
 CL_AllocDlight
@@ -76,7 +58,6 @@ void CL_DecayLights (void)
 
        time = cl.time - cl.oldtime;
 
-       c_dlights = 0;
        dl = cl_dlights;
        for (i=0 ; i<MAX_DLIGHTS ; i++, dl++)
        {
@@ -88,8 +69,6 @@ void CL_DecayLights (void)
                        continue;
                }
 
-               c_dlights++; // count every dlight in use
-
                dl->radius -= time*dl->decay;
                if (dl->radius < 0)
                        dl->radius = 0;