From a20b9c224013a2432034dc673db288d380025efb Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 9 Nov 2005 11:32:15 +0000 Subject: (svn r3159) Remove the read-only variable _no_button_sound --- gui.h | 1 - main_gui.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gui.h b/gui.h index 7972cc8a0..3a5938a0b 100644 --- a/gui.h +++ b/gui.h @@ -146,7 +146,6 @@ void ShowMusicWindow(void); VARDEF byte _construct_mode; VARDEF byte _station_show_coverage; VARDEF PlaceProc *_place_proc; -VARDEF bool _no_button_sound; /* vehicle_gui.c */ void InitializeGUI(void); diff --git a/main_gui.c b/main_gui.c index 80e4f1105..e51fcc643 100644 --- a/main_gui.c +++ b/main_gui.c @@ -127,7 +127,7 @@ bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, int mode, Pla if (w->disabled_state & mask) return false; - if (!_no_button_sound) SndPlayFx(SND_15_BEEP); + SndPlayFx(SND_15_BEEP); SetWindowDirty(w); if (w->click_state & mask) { -- cgit v1.2.3-70-g09d2