fix area assertion/test failure

This commit is contained in:
Jonathan 2023-02-13 20:41:11 -05:00
parent dd75cdf3e3
commit 72a0a92d3a
1 changed files with 8 additions and 1 deletions

View File

@ -193,7 +193,14 @@ static void ExportLeaf(node_t *node)
}
dleaf.nummarksurfaces = static_cast<int>(map.bsp.dleaffaces.size()) - dleaf.firstmarksurface;
dleaf.area = node->area;
if (map.leakfile) {
if (!(dleaf.contents & Q2_CONTENTS_SOLID)) {
dleaf.area = 1;
}
} else {
dleaf.area = node->area;
}
dleaf.cluster = node->viscluster;
dleaf.firstleafbrush = node->firstleafbrush;
dleaf.numleafbrushes = node->numleafbrushes;