From 9d7f83a46af034d256bcb966323847e319dc67be Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 21 Aug 2023 10:54:10 -0400 Subject: [PATCH] don't remove style keys from non-areaportals if the map leaks --- qbsp/portals.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;