fix areaportal issue

This commit is contained in:
Jonathan 2023-06-14 02:50:23 -04:00
parent d36e2f5114
commit 06d48e6822
2 changed files with 5 additions and 1 deletions

View File

@ -920,10 +920,14 @@ void EmitAreaPortals(node_t *headnode)
// don't do anything else if we've leaked
if (map.leakfile || map.antiregions.size() || map.region) {
map.bsp.dareas.emplace_back();
for (auto &e : map.entities) {
e.areaportalnum = 0;
e.epairs.remove("style");
}
return;
}

View File

@ -197,7 +197,7 @@ static void ExportLeaf(node_t *node)
dleaf.area = AREA_INVALID;
} else {
if (map.leakfile || map.region || map.antiregions.size()) {
dleaf.area = 0;
dleaf.area = 1;
} else {
dleaf.area = node->area;
}