mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r19101) -Fix (r19039): Click sound was not played when pressing zoom in/out buttons.
This commit is contained in:
parent
6c35de1d25
commit
464ad6b951
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user