qbsp: fix -keepprt

This commit is contained in:
Eric Wasylishen 2022-06-21 22:05:54 -06:00
parent d972a10152
commit b77c25dcd4
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}