summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rail_cmd.cpp2
-rw-r--r--src/rail_gui.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index e03889cf9..1b2d64d7f 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -843,8 +843,6 @@ static CommandCost CmdRailTrackHelper(TileIndex tile, DoCommandFlag flags, uint3
CommandCost ret = ValidateAutoDrag(&trackdir, tile, end_tile);
if (ret.Failed()) return ret;
- if ((flags & DC_EXEC) && _settings_client.sound.confirm) SndPlayTileFx(SND_20_SPLAT_2, tile);
-
bool had_success = false;
CommandCost last_error = CMD_ERROR;
for (;;) {
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 70f1a49de..5dafb83f8 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -352,7 +352,8 @@ static void DoRailroadTrack(int mode)
DoCommandP(TileVirtXY(_thd.selstart.x, _thd.selstart.y), TileVirtXY(_thd.selend.x, _thd.selend.y), _cur_railtype | (mode << 4),
_remove_button_clicked ?
CMD_REMOVE_RAILROAD_TRACK | CMD_MSG(STR_ERROR_CAN_T_REMOVE_RAILROAD_TRACK) :
- CMD_BUILD_RAILROAD_TRACK | CMD_MSG(STR_ERROR_CAN_T_BUILD_RAILROAD_TRACK));
+ CMD_BUILD_RAILROAD_TRACK | CMD_MSG(STR_ERROR_CAN_T_BUILD_RAILROAD_TRACK),
+ CcPlaySound1E);
}
static void HandleAutodirPlacement()