From: havoc Date: Wed, 14 Jul 2010 10:10:46 +0000 (+0000) Subject: fix a bug with svbsp compiled lights when a leaf has no portals - X-Git-Tag: xonotic-v0.1.0preview~346 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f88c6ba82547fa34ab5ddd4febc0b49700820907;p=xonotic%2Fdarkplaces.git fix a bug with svbsp compiled lights when a leaf has no portals - however the leaf is assumed visible, not good git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10316 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=47ffdacec654457c5ed96ee15bb10bc3998b2ff4 --- diff --git a/gl_rsurf.c b/gl_rsurf.c index e70c8d0a..d3b941aa 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -739,7 +739,7 @@ static void R_Q1BSP_RecursiveGetLightInfo(r_q1bsp_getlightinfo_t *info, mnode_t if (SVBSP_AddPolygon(&r_svbsp, portal->numpoints, points[0], false, NULL, NULL, 0) & 2) break; } - if (portal == NULL) + if (leaf->portals && portal == NULL) return; // no portals of this leaf visible } if (info->svbsp_insertoccluder)