qbsp: make -nofill still write out .prt file, for diagnosis

This commit is contained in:
Eric Wasylishen 2022-01-29 19:22:30 -07:00
parent 0d25b8b1fa
commit 5c897000f3
1 changed files with 2 additions and 2 deletions

View File

@ -603,10 +603,10 @@ static void ProcessEntity(mapentity_t *entity, const int hullnum)
// build all the portals in the bsp tree
// some portals are solid polygons, and some are paths to other leafs
if (entity == pWorldEnt() && !options.fNofill) {
if (entity == pWorldEnt()) {
// assume non-world bmodels are simple
PortalizeWorld(entity, nodes, hullnum);
if (FillOutside(nodes, hullnum)) {
if (!options.fNofill && FillOutside(nodes, hullnum)) {
FreeAllPortals(nodes);
// get the remaining faces together into surfaces again