diff options
author | frosch <frosch@openttd.org> | 2012-12-23 21:09:09 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-23 21:09:09 +0000 |
commit | 3ce8d2ce706fc14084a7d33a000d0b7a39fb19db (patch) | |
tree | 6dde407ee402de6f5a5b75059a076222e80c7c0c /src/airport_gui.cpp | |
parent | 345c3203d74b485f5f6569b87c06ad9af79422a2 (diff) | |
download | openttd-3ce8d2ce706fc14084a7d33a000d0b7a39fb19db.tar.xz |
(svn r24846) -Add: Advanced settings to disable certain sound effects.
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r-- | src/airport_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index 7b55c09d9..8d97add91 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -43,7 +43,7 @@ void CcBuildAirport(const CommandCost &result, TileIndex tile, uint32 p1, uint32 { if (result.Failed()) return; - SndPlayTileFx(SND_1F_SPLAT, tile); + if (_settings_client.sound.confirm) SndPlayTileFx(SND_1F_SPLAT, tile); if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace(); } @@ -450,7 +450,7 @@ public: this->SetWidgetLoweredState(WID_AP_BTN_DONTHILIGHT, !_settings_client.gui.station_show_coverage); this->SetWidgetLoweredState(WID_AP_BTN_DOHILIGHT, _settings_client.gui.station_show_coverage); this->SetDirty(); - SndPlayFx(SND_15_BEEP); + if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); this->UpdateSelectSize(); break; |