|
@@ -406,19 +406,19 @@ static void CommonRaiseLowerBigLand(Tile
|
|
|
|
|
|
uint h;
|
|
|
if (mode != 0) {
|
|
|
/* Raise land */
|
|
|
h = MAX_TILE_HEIGHT;
|
|
|
TILE_AREA_LOOP(tile2, ta) {
|
|
|
h = min(h, TileHeight(tile2));
|
|
|
h = std::min(h, TileHeight(tile2));
|
|
|
}
|
|
|
} else {
|
|
|
/* Lower land */
|
|
|
h = 0;
|
|
|
TILE_AREA_LOOP(tile2, ta) {
|
|
|
h = max(h, TileHeight(tile2));
|
|
|
h = std::max(h, TileHeight(tile2));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
TILE_AREA_LOOP(tile2, ta) {
|
|
|
if (TileHeight(tile2) == h) {
|
|
|
DoCommandP(tile2, SLOPE_N, (uint32)mode, CMD_TERRAFORM_LAND);
|
|
@@ -544,14 +544,14 @@ struct ScenarioEditorLandscapeGeneration
|
|
|
}
|
|
|
|
|
|
void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) override
|
|
|
{
|
|
|
if (widget != WID_ETT_DOTS) return;
|
|
|
|
|
|
size->width = max<uint>(size->width, ScaleGUITrad(59));
|
|
|
size->height = max<uint>(size->height, ScaleGUITrad(31));
|
|
|
size->width = std::max<uint>(size->width, ScaleGUITrad(59));
|
|
|
size->height = std::max<uint>(size->height, ScaleGUITrad(31));
|
|
|
}
|
|
|
|
|
|
void DrawWidget(const Rect &r, int widget) const override
|
|
|
{
|
|
|
if (widget != WID_ETT_DOTS) return;
|
|
|
|