From 5c897000f307a89c03c1df87f0238ee21d58c1a7 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 29 Jan 2022 19:22:30 -0700 Subject: [PATCH] qbsp: make -nofill still write out .prt file, for diagnosis --- qbsp/qbsp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index 50d1a804..950b520a 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -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