(svn r24846) -Add: Advanced settings to disable certain sound effects.

This commit is contained in:
frosch
2012-12-23 21:09:09 +00:00
parent 888df85a3a
commit 336a93a9d8
33 changed files with 185 additions and 100 deletions

View File

@@ -842,7 +842,7 @@ static CommandCost CmdRailTrackHelper(TileIndex tile, DoCommandFlag flags, uint3
CommandCost ret = ValidateAutoDrag(&trackdir, tile, end_tile);
if (ret.Failed()) return ret;
if (flags & DC_EXEC) SndPlayTileFx(SND_20_SPLAT_2, tile);
if ((flags & DC_EXEC) && _settings_client.sound.confirm) SndPlayTileFx(SND_20_SPLAT_2, tile);
bool had_success = false;
CommandCost last_error = CMD_ERROR;