Codechange: migrate size related functions to Map structure

This commit is contained in:
Rubidium
2023-01-21 10:43:03 +01:00
committed by rubidium42
parent d481f78b24
commit fe2bcd2a58
56 changed files with 334 additions and 343 deletions

View File

@@ -101,8 +101,8 @@ public:
tile_x -= std::min(extend * N, tile_x);
tile_y -= std::min(extend * N, tile_y);
w += std::min(extend * N, MapSizeX() - tile_x - w);
h += std::min(extend * N, MapSizeY() - tile_y - h);
w += std::min(extend * N, Map::SizeX() - tile_x - w);
h += std::min(extend * N, Map::SizeY() - tile_y - h);
return TileArea(TileXY(tile_x, tile_y), w, h);
}