diff options
author | frosch <frosch@openttd.org> | 2011-02-05 16:36:37 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-02-05 16:36:37 +0000 |
commit | 9e1695aa1e8079fc46d05af25a26917cfd678deb (patch) | |
tree | cebc4f0862fc6eced4a29f95b45a63d039522073 /src/window.cpp | |
parent | b992a939966dfe50e16688d1f30767a50b2d2bc5 (diff) | |
download | openttd-9e1695aa1e8079fc46d05af25a26917cfd678deb.tar.xz |
(svn r21977) -Codechange: Always cal Window::OnMouseWheel(), independent of viewport scroll/zoom settings.
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp index 5630a29ac..d6bdf4ffb 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2184,10 +2184,8 @@ static void MouseLoop(MouseClick click, int mousewheel) if (vp != NULL && (_game_mode == GM_MENU || IsGeneratingWorld())) return; if (mousewheel != 0) { - if (_settings_client.gui.scrollwheel_scrolling == 0) { - /* Send mousewheel event to window */ - w->OnMouseWheel(mousewheel); - } + /* Send mousewheel event to window */ + w->OnMouseWheel(mousewheel); /* Dispatch a MouseWheelEvent for widgets if it is not a viewport */ if (vp == NULL) DispatchMouseWheelEvent(w, w->nested_root->GetWidgetFromPos(x - w->left, y - w->top), mousewheel); |