diff --git a/qbsp/portals.cc b/qbsp/portals.cc index f16b2dac..a438fc61 100644 --- a/qbsp/portals.cc +++ b/qbsp/portals.cc @@ -797,13 +797,10 @@ static void DebugAreaPortalBothSidesLeak(node_t *node) { std::vector exits = FindAreaPortalExits(node); - logging::print("found {} exits:\n", exits.size()); - for (auto [exit_portal, exit_leaf] : exits) { - logging::print( - " {} ({}):\n", exit_leaf->bounds.centroid(), exit_leaf->contents.to_string(qbsp_options.target_game)); - } - if (exits.size() < 2) + if (exits.size() < 2) { + logging::funcprint("WARNING: only found {} exits\n", exits.size()); return; + } auto [exit_portal0, exit_leaf0] = exits[0]; @@ -828,8 +825,6 @@ static void DebugAreaPortalBothSidesLeak(node_t *node) return true; }); - logging::print("shortest path from exit 0 to {} is {} leafs long\n", i, path.size()); - if (path.size() > longest_length) { longest_length = path.size(); longest_path = path; @@ -859,7 +854,7 @@ static void DebugAreaPortalBothSidesLeak(node_t *node) WriteLeakTrail(ptsfile, (*it)->bounds.centroid(), (*next_it)->bounds.centroid()); } - logging::print("Wrote {}\n", name); + logging::print("Wrote areaportal leak to {}\n", name); ++map.numareaportal_leaks; }