Mercurial > hg > openttd
diff src/main_gui.cpp @ 17248:114fbdb11b40 draft
(svn r21988) -Change: Disable smooth scrolling for GHK_CENTER_ZOOM when zooming is also involved.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 05 Feb 2011 21:07:25 +0000 (2011-02-05) |
parents | d8b501ee60b3 |
children | 84f869ec145a |
line wrap: on
line diff
--- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -314,8 +314,9 @@ case GHK_CENTER_ZOOM: { Point pt = GetTileBelowCursor(); if (pt.x != -1) { + bool instant = (num == GHK_CENTER_ZOOM && this->viewport->zoom != ZOOM_LVL_MIN); if (num == GHK_CENTER_ZOOM) MaxZoomInOut(ZOOM_IN, this); - ScrollMainWindowTo(pt.x, pt.y); + ScrollMainWindowTo(pt.x, pt.y, -1, instant); } break; }