CSolidObject* CGroundBlockingObjectMap::GroundBlocked(int mapSquare, bool topMost) { if (mapSquare < 0 || mapSquare >= gs->mapSquares) { return 0x0; } return GroundBlockedUnsafe(mapSquare); }
CSolidObject* CGroundBlockingObjectMap::GroundBlocked(int x, int z) const { if (x < 0 || x >= mapDims.mapx || z < 0 || z >= mapDims.mapy) return NULL; return GroundBlockedUnsafe(x + z * mapDims.mapx); }