forked from mirror/OpenTTD
(svn r3159) Remove the read-only variable _no_button_sound
This commit is contained in:
1
gui.h
1
gui.h
@@ -146,7 +146,6 @@ void ShowMusicWindow(void);
|
|||||||
VARDEF byte _construct_mode;
|
VARDEF byte _construct_mode;
|
||||||
VARDEF byte _station_show_coverage;
|
VARDEF byte _station_show_coverage;
|
||||||
VARDEF PlaceProc *_place_proc;
|
VARDEF PlaceProc *_place_proc;
|
||||||
VARDEF bool _no_button_sound;
|
|
||||||
|
|
||||||
/* vehicle_gui.c */
|
/* vehicle_gui.c */
|
||||||
void InitializeGUI(void);
|
void InitializeGUI(void);
|
||||||
|
@@ -127,7 +127,7 @@ bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, int mode, Pla
|
|||||||
if (w->disabled_state & mask)
|
if (w->disabled_state & mask)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!_no_button_sound) SndPlayFx(SND_15_BEEP);
|
SndPlayFx(SND_15_BEEP);
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
|
|
||||||
if (w->click_state & mask) {
|
if (w->click_state & mask) {
|
||||||
|
Reference in New Issue
Block a user