- 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.
This commit is contained in:
Christoph Oelckers 2016-04-18 00:02:07 +02:00
parent 54d78df267
commit 89b2cc45a2

View file

@ -6184,15 +6184,13 @@ void P_CreateSecNodeList(AActor *thing)
node = node->m_tnext; node = node->m_tnext;
} }
FPortalGroupArray grouplist; FBoundingBox box(thing->X(), thing->Y(), thing->radius);
FMultiBlockLinesIterator mit(grouplist, thing); FBlockLinesIterator it(box);
FMultiBlockLinesIterator::CheckResult cres; line_t *ld;
while (mit.Next(&cres)) while ((ld = it.Next()))
{ {
line_t *ld = cres.line; if (!box.inRange(ld) || box.BoxOnLineSide(ld) != -1)
if (!mit.Box().inRange(ld) || mit.Box().BoxOnLineSide(ld) != -1)
continue; continue;
// This line crosses through the object. // This line crosses through the object.