diff options
author | glx <glx@openttd.org> | 2020-01-01 01:17:03 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-01-01 10:34:26 +0100 |
commit | 90f4abe03f7c1e1abeae3b2a2b4a37dd6086ded6 (patch) | |
tree | 2b1d3bcfb64508964447f22f8e684768d97fdf19 /src | |
parent | 24bace32badeafd97df2bc849cf9fb93f3cfbce0 (diff) | |
download | openttd-90f4abe03f7c1e1abeae3b2a2b4a37dd6086ded6.tar.xz |
Fix #7887: missing beep for some main toolbar buttons
Diffstat (limited to 'src')
-rw-r--r-- | src/toolbar_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 9a58ff437..748a1e3dd 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -939,6 +939,7 @@ static CallBackFunction ToolbarBuildWaterClick(Window *w) DropDownList list; list.emplace_back(new DropDownListIconItem(SPR_IMG_BUILD_CANAL, PAL_NONE, STR_WATERWAYS_MENU_WATERWAYS_CONSTRUCTION, 0, false)); ShowDropDownList(w, std::move(list), 0, WID_TN_WATER, 140, true, true); + if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); return CBF_NONE; } @@ -961,6 +962,7 @@ static CallBackFunction ToolbarBuildAirClick(Window *w) DropDownList list; list.emplace_back(new DropDownListIconItem(SPR_IMG_AIRPORT, PAL_NONE, STR_AIRCRAFT_MENU_AIRPORT_CONSTRUCTION, 0, false)); ShowDropDownList(w, std::move(list), 0, WID_TN_AIR, 140, true, true); + if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); return CBF_NONE; } @@ -985,6 +987,7 @@ static CallBackFunction ToolbarForestClick(Window *w) list.emplace_back(new DropDownListIconItem(SPR_IMG_PLANTTREES, PAL_NONE, STR_LANDSCAPING_MENU_PLANT_TREES, 1, false)); list.emplace_back(new DropDownListIconItem(SPR_IMG_SIGN, PAL_NONE, STR_LANDSCAPING_MENU_PLACE_SIGN, 2, false)); ShowDropDownList(w, std::move(list), 0, WID_TN_LANDSCAPE, 100, true, true); + if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); return CBF_NONE; } |