diff --git a/qbsp/portals.cc b/qbsp/portals.cc index c1c7b2ec..1451dc33 100644 --- a/qbsp/portals.cc +++ b/qbsp/portals.cc @@ -925,7 +925,10 @@ void EmitAreaPortals(node_t *headnode) for (auto &e : map.entities) { e.areaportalnum = 0; - e.epairs.remove("style"); + + if (e.epairs.get("classname") == "func_areaportal") { + e.epairs.remove("style"); + } } return;