Codechange: migrate size related functions to Map structure
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user