- Fixed: FBlockThingsIterator didn't set the current block coordinates if
they were outside the blockmap. This could cause extreme delays if an iteration started outside the valid boundaries. - added nextmap and nextsecret CCMDs. SVN r924 (trunk)
This commit is contained in:
parent
eb1e17db06
commit
48d8881065
5 changed files with 91 additions and 43 deletions
|
|
@ -804,10 +804,10 @@ FBlockThingsIterator::~FBlockThingsIterator()
|
|||
|
||||
void FBlockThingsIterator::StartBlock(int x, int y)
|
||||
{
|
||||
curx = x;
|
||||
cury = y;
|
||||
if (x >= 0 && y >= 0 && x < bmapwidth && y <bmapheight)
|
||||
{
|
||||
curx = x;
|
||||
cury = y;
|
||||
block = blocklinks[y*bmapwidth + x];
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue