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 ...@@ -72,6 +72,7 @@ void R_MarkLights (dlight_t *light, int num, mnode_t *node) //qbism- adapted fr
msurface_t *surf; msurface_t *surf;
int i; int i;
start:
if (node->contents < 0) if (node->contents < 0)
return; return;
...@@ -80,17 +81,17 @@ void R_MarkLights (dlight_t *light, int num, mnode_t *node) //qbism- adapted fr ...@@ -80,17 +81,17 @@ void R_MarkLights (dlight_t *light, int num, mnode_t *node) //qbism- adapted fr
if (dist > light->radius) if (dist > light->radius)
{ {
R_MarkLights (light, num, node->children[0]); node = node->children[0];
return; goto start;
} }
if (dist < -light->radius) if (dist < -light->radius)
{ {
R_MarkLights (light, num, node->children[1]); node = node->children[1];
return; goto start;
} }
// mark the polygons /* mark the surfaces */
surf = cl.worldmodel->surfaces + node->firstsurface; surf = cl.worldmodel->surfaces + node->firstsurface;
for (i = 0; i < node->numsurfaces; i++, surf++) 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