From 1304874a8f4e92e0507505e7ace02861c5ece0d1 Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Thu, 16 Mar 2023 19:17:42 +0100 Subject: [PATCH] Remove incorrect early returns in P_CheckSector --- src/p_map.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/p_map.c b/src/p_map.c index 54e2003ba..1cdccbbcc 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -4509,7 +4509,6 @@ boolean P_CheckSector(sector_t *sector, boolean crunch) continue; PIT_ChangeSector(mo, true); - return nofit; } } } @@ -4539,10 +4538,7 @@ boolean P_CheckSector(sector_t *sector, boolean crunch) { n->visited = true; if (!(n->m_thing->flags & MF_NOBLOCKMAP)) - { PIT_ChangeSector(n->m_thing, true); - return nofit; - } break; } } while (n); @@ -4562,10 +4558,7 @@ boolean P_CheckSector(sector_t *sector, boolean crunch) { n->visited = true; // mark thing as processed if (!(n->m_thing->flags & MF_NOBLOCKMAP)) //jff 4/7/98 don't do these - { PIT_ChangeSector(n->m_thing, true); // process it - return nofit; - } break; // exit and start over } } while (n); // repeat from scratch until all things left are marked valid