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/smallmap_gui.cpp | |
parent | 345c3203d74b485f5f6569b87c06ad9af79422a2 (diff) | |
download | openttd-3ce8d2ce706fc14084a7d33a000d0b7a39fb19db.tar.xz |
(svn r24846) -Add: Advanced settings to disable certain sound effects.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 2bd442295..528d7bf6a 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1343,7 +1343,7 @@ public: const NWidgetBase *wid = this->GetWidget<NWidgetBase>(WID_SM_MAP); Point pt = {wid->current_x / 2, wid->current_y / 2}; this->SetZoomLevel((widget == WID_SM_ZOOM_IN) ? ZLC_ZOOM_IN : ZLC_ZOOM_OUT, &pt); - SndPlayFx(SND_15_BEEP); + if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); break; } @@ -1354,13 +1354,13 @@ public: case WID_SM_VEGETATION: // Show vegetation case WID_SM_OWNERS: // Show land owners this->SwitchMapType((SmallMapType)(widget - WID_SM_CONTOUR)); - SndPlayFx(SND_15_BEEP); + if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); break; case WID_SM_CENTERMAP: // Center the smallmap again this->SmallMapCenterOnCurrentPos(); this->HandleButtonClick(WID_SM_CENTERMAP); - SndPlayFx(SND_15_BEEP); + if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); break; case WID_SM_TOGGLETOWNNAME: // Toggle town names @@ -1368,7 +1368,7 @@ public: this->SetWidgetLoweredState(WID_SM_TOGGLETOWNNAME, this->show_towns); this->SetDirty(); - SndPlayFx(SND_15_BEEP); + if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); break; case WID_SM_LEGEND: // Legend |