From d0d0ff3c3892ebd335786457917e2696279399fe Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Sun, 20 Jul 2025 22:00:42 -0400 Subject: [PATCH] Fix: Missing beeps for graph selectors --- src/graph_gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index f3f6f6ab3d..af4ca8f6f4 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -17,6 +17,7 @@ #include "cargotype.h" #include "strings_func.h" #include "window_func.h" +#include "sound_func.h" #include "gfx_func.h" #include "core/geometry_func.hpp" #include "currency.h" @@ -90,6 +91,8 @@ struct GraphLegendWindow : Window { InvalidateWindowData(WC_DELIVERED_CARGO, 0); InvalidateWindowData(WC_PERFORMANCE_HISTORY, 0); InvalidateWindowData(WC_COMPANY_VALUE, 0); + + SndClickBeep(); } /** @@ -718,6 +721,7 @@ public: if (HasBit(this->masked_range, row)) break; ToggleBit(this->excluded_range, row); + SndClickBeep(); this->SetDirty(); break; } @@ -1255,6 +1259,8 @@ struct BaseCargoGraphWindow : BaseGraphWindow { int row = this->vscroll->GetScrolledRowFromWidget(pt.y, this, WID_GRAPH_MATRIX); if (row >= this->vscroll->GetCount()) return; + SndClickBeep(); + for (const CargoSpec *cs : _sorted_cargo_specs) { if (!HasBit(this->cargo_types, cs->Index())) continue; if (row-- > 0) continue;