From 554e29e861965f0fe3769c01d394621b60bfe819 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Mon, 4 Jul 2022 00:37:02 -0600 Subject: [PATCH] tree.cc: sync PruneNodes_R condition with qbsp3 --- qbsp/tree.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qbsp/tree.cc b/qbsp/tree.cc index c74031d5..8950facf 100644 --- a/qbsp/tree.cc +++ b/qbsp/tree.cc @@ -125,8 +125,8 @@ static void PruneNodes_R(node_t *node, int &count_pruned) PruneNodes_R(node->children[0].get(), count_pruned); PruneNodes_R(node->children[1].get(), count_pruned); - if (node->children[0]->planenum == PLANENUM_LEAF && node->children[0]->contents.is_solid(options.target_game) && - node->children[1]->planenum == PLANENUM_LEAF && node->children[1]->contents.is_solid(options.target_game)) { + if (node->children[0]->planenum == PLANENUM_LEAF && node->children[0]->contents.is_any_solid(options.target_game) && + node->children[1]->planenum == PLANENUM_LEAF && node->children[1]->contents.is_any_solid(options.target_game)) { // This discards any faces on-node. Should be safe (?) ConvertNodeToLeaf(node, options.target_game->create_solid_contents()); ++count_pruned;