1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-23 22:49:09 +00:00

(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.

This commit is contained in:
2008-01-01 18:35:31 +00:00
parent 47d23eb003
commit c94a6b8c78

View File

@@ -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;
}