mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- 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:
parent
54d78df267
commit
89b2cc45a2
1 changed files with 5 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue