use a dummy plane for nodes with only empty leaves

This commit is contained in:
Jonathan 2022-07-27 20:29:53 -04:00
parent 9c73416594
commit c5d0c4dc67
1 changed files with 1 additions and 0 deletions

View File

@ -916,6 +916,7 @@ static std::unique_ptr<tree_t> BrushBSP(mapentity_t *entity, std::vector<std::un
*/
auto headnode = std::make_unique<node_t>();
headnode->bounds = entity->bounds;
headnode->plane = { { 0, 0, 1 }, 0 };
headnode->children[0] = std::make_unique<node_t>();
headnode->children[0]->is_leaf = true;
headnode->children[0]->contents = qbsp_options.target_game->create_empty_contents();