- split polyobject init into its own file and cleaned things up a bit.

This commit is contained in:
Christoph Oelckers 2018-12-28 15:05:05 +01:00
commit 11e9cdae33
7 changed files with 429 additions and 402 deletions

View file

@ -476,7 +476,6 @@ int SightCheck::P_SightBlockLinesIterator (int x, int y)
polyblock_t *polyLink;
unsigned int i;
extern polyblock_t **PolyBlockMap;
offset = y*level.blockmap.bmapwidth+x;
@ -484,7 +483,7 @@ int SightCheck::P_SightBlockLinesIterator (int x, int y)
// (We still try to delay activating this for as long as possible.)
portalfound = portalfound || level.PortalBlockmap(x, y).containsLinkedPortals;
polyLink = PolyBlockMap[offset];
polyLink = level.PolyBlockMap[offset];
portalfound |= (polyLink && level.PortalBlockmap.hasLinkedPolyPortals);
while (polyLink)
{