From c5d0c4dc67cb0e1187694f5c32ef3eb1c20254c7 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 27 Jul 2022 20:29:53 -0400 Subject: [PATCH] use a dummy plane for nodes with only empty leaves --- qbsp/brushbsp.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/qbsp/brushbsp.cc b/qbsp/brushbsp.cc index fe4204d2..a8cf7df0 100644 --- a/qbsp/brushbsp.cc +++ b/qbsp/brushbsp.cc @@ -916,6 +916,7 @@ static std::unique_ptr BrushBSP(mapentity_t *entity, std::vector(); headnode->bounds = entity->bounds; + headnode->plane = { { 0, 0, 1 }, 0 }; headnode->children[0] = std::make_unique(); headnode->children[0]->is_leaf = true; headnode->children[0]->contents = qbsp_options.target_game->create_empty_contents();