From e8834ebe3fbc3dd71f66125fec87dfecec9a0fb5 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 14 May 2005 03:56:53 +0000 Subject: [PATCH] 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 --- portals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2