Codechange: Remove min/max functions in favour of STL variants (#8502)
This commit is contained in:
@@ -95,14 +95,14 @@ public:
|
||||
uint tile_y = (TileY(tile) / N) * N;
|
||||
uint w = N, h = N;
|
||||
|
||||
w += min(extend * N, tile_x);
|
||||
h += min(extend * N, tile_y);
|
||||
w += std::min(extend * N, tile_x);
|
||||
h += std::min(extend * N, tile_y);
|
||||
|
||||
tile_x -= min(extend * N, tile_x);
|
||||
tile_y -= min(extend * N, tile_y);
|
||||
tile_x -= std::min(extend * N, tile_x);
|
||||
tile_y -= std::min(extend * N, tile_y);
|
||||
|
||||
w += min(extend * N, MapSizeX() - tile_x - w);
|
||||
h += min(extend * N, MapSizeY() - tile_y - h);
|
||||
w += std::min(extend * N, MapSizeX() - tile_x - w);
|
||||
h += std::min(extend * N, MapSizeY() - tile_y - h);
|
||||
|
||||
return TileArea(TileXY(tile_x, tile_y), w, h);
|
||||
}
|
||||
|
Reference in New Issue
Block a user