From bfffde23e6cb5bb804ec2c0379ee4ff28c2c63c8 Mon Sep 17 00:00:00 2001 From: Justin <95296300+Toodles2You@users.noreply.github.com> Date: Thu, 30 Jan 2025 19:33:25 -0800 Subject: [PATCH] have notriggermodels output mins/maxs for hull 0 --- 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; }