Codechange: Make functions for click and confirm beeps. (#14484)

Avoids repetition.
This commit is contained in:
Peter Nelson
2025-07-27 21:54:32 +01:00
committed by GitHub
parent f51067f9f5
commit 614a01907a
17 changed files with 73 additions and 54 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ bool HandlePlacePushButton(Window *w, WidgetID widget, CursorID cursor, HighLigh
{
if (w->IsWidgetDisabled(widget)) return false;
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
SndClickBeep();
w->SetDirty();
if (w->IsWidgetLowered(widget)) {