Codechange: Make functions for click and confirm beeps. (#14484)
Avoids repetition.
This commit is contained in:
@@ -3076,7 +3076,7 @@ struct IndustryCargoesWindow : public Window {
|
||||
case WID_IC_NOTIFY:
|
||||
this->ToggleWidgetLoweredState(WID_IC_NOTIFY);
|
||||
this->SetWidgetDirty(WID_IC_NOTIFY);
|
||||
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
||||
SndClickBeep();
|
||||
|
||||
if (this->IsWidgetLowered(WID_IC_NOTIFY)) {
|
||||
if (FindWindowByClass(WC_SMALLMAP) == nullptr) ShowSmallMap();
|
||||
|
||||
Reference in New Issue
Block a user