- Added a few 'activator == NULL' checks to some ACS functions.

- Added line and vertex lists to polyobjects so that I can do some 
  changes that won't work with only a seg list being maintained.


SVN r1016 (trunk)
This commit is contained in:
Christoph Oelckers 2008-06-03 14:38:42 +00:00
commit 8a3edf9716
9 changed files with 123 additions and 53 deletions

View file

@ -170,7 +170,6 @@ static bool P_SightBlockLinesIterator (int x, int y)
int *list;
polyblock_t *polyLink;
seg_t **segList;
int i;
extern polyblock_t **PolyBlockMap;
@ -184,10 +183,9 @@ static bool P_SightBlockLinesIterator (int x, int y)
if (polyLink->polyobj->validcount != validcount)
{
polyLink->polyobj->validcount = validcount;
segList = polyLink->polyobj->segs;
for (i = 0; i < polyLink->polyobj->numsegs; i++, segList++)
for (i = 0; i < polyLink->polyobj->numlines; i++)
{
if (!P_SightCheckLine ((*segList)->linedef))
if (!P_SightCheckLine (polyLink->polyobj->lines[i]))
return false;
}
}