diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-01 18:35:31 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-01 18:35:31 +0000 |
commit | a63359573fabb64bb22eccc256210772f52ea331 (patch) | |
tree | f43eaa7ae2df3805ca7f40e4e15fc505c806ea04 /src/main_gui.cpp | |
parent | c96fcfc21b336643153962ef4fbc3df99ec684ae (diff) | |
download | openttd-a63359573fabb64bb22eccc256210772f52ea331.tar.xz |
(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index f5fb8bf35..cf4ef3d54 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -2231,8 +2231,8 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) case 'Z': { Point pt = GetTileBelowCursor(); if (pt.x != -1) { - ScrollMainWindowTo(pt.x, pt.y); if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w); + ScrollMainWindowTo(pt.x, pt.y); } break; } |