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

View File

@@ -621,7 +621,7 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
if (!IsInsideMM(size, 1, 8 + 1)) return;
_terraform_size = size;
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
SndClickBeep();
this->SetDirty();
break;
}