From 2bbcaed34b3e84a2536a68f89671f3cf7b14ce7b Mon Sep 17 00:00:00 2001 From: Justin <95296300+Toodles2You@users.noreply.github.com> Date: Fri, 31 Jan 2025 18:01:54 -0800 Subject: [PATCH] have notriggermodels output mins/maxs for hull 0 (#446) --- qbsp/qbsp.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index db8763f4..81946a91 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -1094,8 +1094,10 @@ static void ProcessEntity(mapentity_t &entity, hull_index_t hullnum) // we're discarding the brush if (discarded_trigger) { - entity.epairs.set("mins", fmt::to_string(entity.bounds.mins())); - entity.epairs.set("maxs", fmt::to_string(entity.bounds.maxs())); + if (!hullnum.value_or(0)) { + entity.epairs.set("mins", fmt::to_string(entity.bounds.mins())); + entity.epairs.set("maxs", fmt::to_string(entity.bounds.maxs())); + } return; }