From 189cc0586c7c17c5e5a6e5bded86b145d9fd591d Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 11 Nov 2023 14:56:15 -0700 Subject: [PATCH] vis:: restore warnings disabled in 74e1a0f6f02a2a469ebf6d7c05c175096cfe01a3 --- vis/flow.cc | 4 +--- vis/vis.cc | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/vis/flow.cc b/vis/flow.cc index f46c724b..6794a7c9 100644 --- a/vis/flow.cc +++ b/vis/flow.cc @@ -144,9 +144,7 @@ static void RecursiveLeafFlow(int leafnum, threaddata_t *thread, pstack_t &prevs */ err = CheckStack(leaf, thread); if (err) { - // ericw -- this seems harmless and the fix for https://github.com/ericwa/ericw-tools/issues/261 - // causes it to happen a lot. - // logging::funcprint("WARNING: recursion on leaf {}\n", leafnum); + logging::funcprint("WARNING: recursion on leaf {}\n", leafnum); return; } diff --git a/vis/vis.cc b/vis/vis.cc index 4a5a001d..a7487634 100644 --- a/vis/vis.cc +++ b/vis/vis.cc @@ -404,10 +404,8 @@ static void ClusterFlow(int clusternum, leafbits_t &buffer, mbsp_t *bsp) buffer.data()[j] |= p->visbits.data()[j]; } - // ericw -- this seems harmless and the fix for https://github.com/ericwa/ericw-tools/issues/261 - // causes it to happen a lot. - // if (TestLeafBit(buffer, clusternum)) - // logging::print("WARNING: Leaf portals saw into cluster ({})\n", clusternum); + if (buffer[clusternum]) + logging::print("WARNING: Leaf portals saw into cluster ({})\n", clusternum); buffer[clusternum] = true;