changeset 8176:a3f3d90e82e8 draft

(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.
author peter1138 <peter1138@openttd.org>
date Tue, 01 Jan 2008 18:35:31 +0000
parents b6a2bebbaaed
children 1471a78e5abc
files src/main_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -2231,8 +2231,8 @@
 			case 'Z': {
 				Point pt = GetTileBelowCursor();
 				if (pt.x != -1) {
+					if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w);
 					ScrollMainWindowTo(pt.x, pt.y);
-					if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w);
 				}
 				break;
 			}