From b77c25dcd430b6fbe61e8751a196382d6ebc82e3 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 21 Jun 2022 22:05:54 -0600 Subject: [PATCH] qbsp: fix -keepprt --- qbsp/qbsp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index 06486583..00f1f1fe 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -904,7 +904,7 @@ static void ProcessEntity(mapentity_t *entity, const int hullnum) FreeTreePortals_r(tree->headnode); PruneNodes(tree->headnode); - if (hullnum <= 0 && entity == map.world_entity() && !map.leakfile) { + if (hullnum <= 0 && entity == map.world_entity() && (!map.leakfile || options.keepprt.value())) { WritePortalFile(tree); }