Mercurial > hg > openttd
changeset 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 |
parents | 5221777879f1 |
children | 00cd0c521579 |
files | src/main_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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; }