From 89b2cc45a214eec959cb64dee5d07227b659b386 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 18 Apr 2016 00:02:07 +0200 Subject: [PATCH] - reverted P_CreateSecNodes to the regular FBlockLinesIterator. This got accidentally committed. Even if this gets extended to reach through portals it needs to be done differently. FMultiBlockLinesIterator can't guarantee to get every sector that's being touched. --- src/p_map.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index d1cd91816..33f69f201 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -6184,15 +6184,13 @@ void P_CreateSecNodeList(AActor *thing) node = node->m_tnext; } - FPortalGroupArray grouplist; - FMultiBlockLinesIterator mit(grouplist, thing); - FMultiBlockLinesIterator::CheckResult cres; + FBoundingBox box(thing->X(), thing->Y(), thing->radius); + FBlockLinesIterator it(box); + line_t *ld; - while (mit.Next(&cres)) + while ((ld = it.Next())) { - line_t *ld = cres.line; - - if (!mit.Box().inRange(ld) || mit.Box().BoxOnLineSide(ld) != -1) + if (!box.inRange(ld) || box.BoxOnLineSide(ld) != -1) continue; // This line crosses through the object.