- split polyobject init into its own file and cleaned things up a bit.
This commit is contained in:
parent
9de2f5c1e7
commit
11e9cdae33
7 changed files with 429 additions and 402 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue