fix areaportal issue
This commit is contained in:
parent
d36e2f5114
commit
06d48e6822
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue