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
commit2851f58efa0d4e69a1113195af0f865dc944d414 (patch)
tree17d1923b83a591294a9f935eda1159e520609c81 /src/functions.h
parent493494a35dc85419476569ce29e54ed6f9bc198c (diff)
downloadopenttd-2851f58efa0d4e69a1113195af0f865dc944d414.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);