- 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;
}
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.