forked from mirror/OpenTTD
(svn r19101) -Fix (r19039): Click sound was not played when pressing zoom in/out buttons.
This commit is contained in:
@@ -1113,6 +1113,7 @@ public:
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user