restore inside fill to working status

This commit is contained in:
Jonathan 2022-06-13 02:20:34 -04:00
parent 4755f23efa
commit d917c253c5
2 changed files with 17 additions and 4 deletions

View File

@ -506,6 +506,16 @@ static int OutLeafsToSolid(node_t *node)
//=============================================================================
static void SetOccupied_R(node_t *node, int dist)
{
if (node->planenum != PLANENUM_LEAF) {
SetOccupied_R(node->children[0], dist);
SetOccupied_R(node->children[1], dist);
}
node->occupied = dist;
}
/*
==================
precondition: all leafs have occupied set to 0
@ -527,7 +537,11 @@ static void BFSFloodFillFromOccupiedLeafs(const std::vector<node_t *> &occupied_
if (node->occupied == 0) {
// we haven't visited this node yet
node->occupied = dist;
if (node->detail_separator) {
SetOccupied_R(node, dist);
} else {
node->occupied = dist;
}
// push neighbouring nodes onto the back of the queue
int side;

View File

@ -171,12 +171,11 @@ void qbsp_settings::postinitialize(int argc, const char **argv)
}
// side effects from Quake II
// fixme-brushbsp: enable when it's working
/*if (q2bsp.value() || qbism.value()) {
if (q2bsp.value() || qbism.value()) {
if (!filltype.isChanged()) {
filltype.setValueLocked(filltype_t::INSIDE);
}
}*/
}
common_settings::postinitialize(argc, argv);
}