equal
deleted
inserted
replaced
1315 cur_tile = tile + TileDiffXY(-1, -1); |
1315 cur_tile = tile + TileDiffXY(-1, -1); |
1316 size_x = max_x + 4; |
1316 size_x = max_x + 4; |
1317 size_y = max_y + 4; |
1317 size_y = max_y + 4; |
1318 |
1318 |
1319 /* Check if we don't leave the map */ |
1319 /* Check if we don't leave the map */ |
1320 if (TileX(cur_tile) == 0 || TileY(cur_tile) == 0 || GetTileType(cur_tile) == MP_VOID) return false; |
1320 if (TileX(cur_tile) == 0 || TileY(cur_tile) == 0 || TileX(cur_tile) + size_x >= MapMaxX() || TileY(cur_tile) + size_y >= MapMaxY()) return false; |
1321 |
1321 |
1322 BEGIN_TILE_LOOP(tile_walk, size_x, size_y, cur_tile) { |
1322 BEGIN_TILE_LOOP(tile_walk, size_x, size_y, cur_tile) { |
1323 curh = TileHeight(tile_walk); |
1323 curh = TileHeight(tile_walk); |
1324 if (curh != h) { |
1324 if (curh != h) { |
1325 /* This tile needs terraforming. Check if we can do that without |
1325 /* This tile needs terraforming. Check if we can do that without |