summaryrefslogtreecommitdiff
path: root/src/functions.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-05-28 16:46:16 +0000
committerpeter1138 <peter1138@openttd.org>2007-05-28 16:46:16 +0000
commit344e9007feac6dd1e90154b45e80907c5e49821a (patch)
tree17d1923b83a591294a9f935eda1159e520609c81 /src/functions.h
parent1a8a44165b7ccab605673c750596b80eb3d88799 (diff)
downloadopenttd-344e9007feac6dd1e90154b45e80907c5e49821a.tar.xz
(svn r9962) -Feature: Add smooth viewport scrolling. This must be enabled with patch setting 'smooth_scroll'
Diffstat (limited to 'src/functions.h')
-rw-r--r--src/functions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/functions.h b/src/functions.h
index 2540843da..12cf9deb8 100644
--- a/src/functions.h
+++ b/src/functions.h
@@ -131,10 +131,10 @@ void SetObjectToPlace(CursorID icon, SpriteID pal, byte mode, WindowClass window
void ResetObjectToPlace();
-bool ScrollWindowTo(int x, int y, Window * w);
+bool ScrollWindowTo(int x, int y, Window * w, bool instant = false);
-bool ScrollMainWindowToTile(TileIndex tile);
-bool ScrollMainWindowTo(int x, int y);
+bool ScrollMainWindowToTile(TileIndex tile, bool instant = false);
+bool ScrollMainWindowTo(int x, int y, bool instant = false);
void DrawSprite(SpriteID img, SpriteID pal, int x, int y);
bool EnsureNoVehicle(TileIndex tile);
bool EnsureNoVehicleOnGround(TileIndex tile);