- 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
|
|
@ -581,7 +581,6 @@ void AActor::SetOrigin(double x, double y, double z, bool moving)
|
|||
// FBlockLinesIterator
|
||||
//
|
||||
//===========================================================================
|
||||
extern polyblock_t **PolyBlockMap;
|
||||
|
||||
FBlockLinesIterator::FBlockLinesIterator(int _minx, int _miny, int _maxx, int _maxy, bool keepvalidcount)
|
||||
{
|
||||
|
|
@ -621,7 +620,7 @@ void FBlockLinesIterator::StartBlock(int x, int y)
|
|||
if (level.blockmap.isValidBlock(x, y))
|
||||
{
|
||||
int offset = y*level.blockmap.bmapwidth + x;
|
||||
polyLink = PolyBlockMap? PolyBlockMap[offset] : NULL;
|
||||
polyLink = level.PolyBlockMap.Size() > offset? level.PolyBlockMap[offset] : nullptr;
|
||||
polyIndex = 0;
|
||||
|
||||
list = level.blockmap.GetLines(x, y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue