qbsp: make -debugleafvolumes only write out solid leafs

This commit is contained in:
Eric Wasylishen 2022-09-28 19:23:57 -06:00
parent 7a014819f0
commit 1160352a24
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}