From 1160352a244ec89ae5d4c22a7444c2895d595c37 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 28 Sep 2022 19:23:57 -0600 Subject: [PATCH] qbsp: make -debugleafvolumes only write out solid leafs --- qbsp/qbsp.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index d7403313..c122be42 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -438,7 +438,9 @@ static void GatherBspbrushes_r(node_t *node, bspbrush_t::container &container) static void GatherLeafVolumes_r(node_t *node, bspbrush_t::container &container) { if (node->is_leaf) { - container.push_back(node->volume); + if (!node->contents.is_empty(qbsp_options.target_game)) { + container.push_back(node->volume); + } return; }