- fixed: Portals with disconnected parts were not grouped correctly.

This commit is contained in:
Christoph Oelckers 2016-10-25 01:03:44 +02:00
parent 8368272b4d
commit dad89b0783

View file

@ -1024,7 +1024,8 @@ void P_CreateLinkedPortals()
{
if (sectors[i].GetPortalType(j) == PORTS_LINKEDPORTAL && sectors[i].PortalGroup == 0)
{
CollectSectors(sectors[i].GetOppositePortalGroup(j), &sectors[i]);
auto p = sectors[i].GetPortal(j);
CollectSectors(p->mOrigin->PortalGroup, &sectors[i]);
}
}
}