|
|
|
|
@ -285,6 +285,10 @@ bool GetPath(const std::function<bool(Point)> &posOk, PATHNODE *pPath, Point des
|
|
|
|
|
|
|
|
|
|
bool IsTileNotSolid(Point position) |
|
|
|
|
{ |
|
|
|
|
if (position.x < 0 || position.y < 0 || position.x >= MAXDUNX || position.y >= MAXDUNY) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return !nSolidTable[dPiece[position.x][position.y]]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|