changeset 14530:3f5264cab29e draft

(svn r19101) -Fix (r19039): Click sound was not played when pressing zoom in/out buttons.
author alberth <alberth@openttd.org>
date Fri, 12 Feb 2010 10:40:29 +0000
parents 73c4918ae53a
children b878da2baabd
files src/smallmap_gui.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -1113,6 +1113,7 @@
 				const NWidgetBase *wid = this->GetWidget<NWidgetBase>(SM_WIDGET_MAP);
 				Point pt = {wid->current_x / 2, wid->current_y / 2};
 				this->SetZoomLevel((widget == SM_WIDGET_ZOOM_IN) ? ZLC_ZOOM_IN : ZLC_ZOOM_OUT, &pt);
+				SndPlayFx(SND_15_BEEP);
 				break;
 			}