Commit 09a02f2f authored by Libretro-Admin's avatar Libretro-Admin
Browse files
parent db7ddd8c
......@@ -72,6 +72,7 @@ void R_MarkLights (dlight_t *light, int num, mnode_t *node) //qbism- adapted fr
msurface_t *surf;
int i;
start:
if (node->contents < 0)
return;
......@@ -80,17 +81,17 @@ void R_MarkLights (dlight_t *light, int num, mnode_t *node) //qbism- adapted fr
if (dist > light->radius)
{
R_MarkLights (light, num, node->children[0]);
return;
node = node->children[0];
goto start;
}
if (dist < -light->radius)
{
R_MarkLights (light, num, node->children[1]);
return;
node = node->children[1];
goto start;
}
// mark the polygons
/* mark the surfaces */
surf = cl.worldmodel->surfaces + node->firstsurface;
for (i = 0; i < node->numsurfaces; i++, surf++)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment