From: havoc Date: Sat, 14 May 2005 03:56:53 +0000 (+0000) Subject: fix portal lighting in a single cluster map (box map) X-Git-Tag: xonotic-v0.1.0preview~4889 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e8834ebe3fbc3dd71f66125fec87dfecec9a0fb5;p=xonotic%2Fdarkplaces.git fix portal lighting in a single cluster map (box map) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5292 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/portals.c b/portals.c index fda14920..88896dd7 100644 --- a/portals.c +++ b/portals.c @@ -419,7 +419,7 @@ void Portal_RecursiveFindLeafForFlow(portalrecursioninfo_t *info, mnode_t *node) else { mleaf_t *leaf = (mleaf_t *)node; - if (leaf->portals) + if (leaf->clusterindex >= 0) Portal_RecursiveFlow(info, leaf, 0, info->numfrustumplanes); } } @@ -438,7 +438,7 @@ void Portal_Visibility(model_t *model, const vec3_t eye, int *leaflist, qbyte *l Mod_CheckLoaded(model); - if (!model->brush.num_portals) + if (!model->brush.data_nodes) { Con_Print("Portal_Visibility: not a brush model\n"); return;