|
@@ -36,13 +36,13 @@
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
|
|
|
void CcTerraform(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2)
|
|
|
{
|
|
|
if (result.Succeeded()) {
|
|
|
SndPlayTileFx(SND_1F_SPLAT, tile);
|
|
|
if (_settings_client.sound.confirm) SndPlayTileFx(SND_1F_SPLAT, tile);
|
|
|
} else {
|
|
|
extern TileIndex _terraform_err_tile;
|
|
|
SetRedErrorSquare(_terraform_err_tile);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -84,13 +84,13 @@ static void GenerateRockyArea(TileIndex
|
|
|
default: continue;
|
|
|
}
|
|
|
MarkTileDirtyByTile(tile);
|
|
|
success = true;
|
|
|
}
|
|
|
|
|
|
if (success) SndPlayTileFx(SND_1F_SPLAT, end);
|
|
|
if (success && _settings_client.sound.confirm) SndPlayTileFx(SND_1F_SPLAT, end);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* A central place to handle all X_AND_Y dragged GUI functions.
|
|
|
* @param proc Procedure related to the dragging
|
|
|
* @param start_tile Begin of the dragging
|
|
@@ -408,13 +408,13 @@ static void CommonRaiseLowerBigLand(Tile
|
|
|
assert(_terraform_size != 0);
|
|
|
TileArea ta(tile, _terraform_size, _terraform_size);
|
|
|
ta.ClampToMap();
|
|
|
|
|
|
if (ta.w == 0 || ta.h == 0) return;
|
|
|
|
|
|
SndPlayTileFx(SND_1F_SPLAT, tile);
|
|
|
if (_settings_client.sound.confirm) SndPlayTileFx(SND_1F_SPLAT, tile);
|
|
|
|
|
|
uint h;
|
|
|
if (mode != 0) {
|
|
|
/* Raise land */
|
|
|
h = MAX_TILE_HEIGHT;
|
|
|
TILE_AREA_LOOP(tile2, ta) {
|
|
@@ -627,13 +627,13 @@ struct ScenarioEditorLandscapeGeneration
|
|
|
this->HandleButtonClick(widget);
|
|
|
size += _terraform_size;
|
|
|
|
|
|
if (!IsInsideMM(size, 1, 8 + 1)) return;
|
|
|
_terraform_size = size;
|
|
|
|
|
|
SndPlayFx(SND_15_BEEP);
|
|
|
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
|
|
this->SetDirty();
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case WID_ETT_NEW_SCENARIO: // gen random land
|
|
|
this->HandleButtonClick(widget);
|