don't remove style keys from non-areaportals if the map leaks
This commit is contained in:
parent
e4ca86c846
commit
9d7f83a46a
|
|
@ -925,7 +925,10 @@ void EmitAreaPortals(node_t *headnode)
|
||||||
|
|
||||||
for (auto &e : map.entities) {
|
for (auto &e : map.entities) {
|
||||||
e.areaportalnum = 0;
|
e.areaportalnum = 0;
|
||||||
e.epairs.remove("style");
|
|
||||||
|
if (e.epairs.get("classname") == "func_areaportal") {
|
||||||
|
e.epairs.remove("style");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue