diff options
author | smatz <smatz@openttd.org> | 2009-03-15 15:25:18 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-03-15 15:25:18 +0000 |
commit | af293142fede91cc31e98c7e05d9ecfef752b077 (patch) | |
tree | c041152a492c41b5020c575b6fde72be6dc3a5b8 /src/viewport_func.h | |
parent | 4f8eeca437a57c160364cdb97182ae1566e6c693 (diff) | |
download | openttd-af293142fede91cc31e98c7e05d9ecfef752b077.tar.xz |
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
Diffstat (limited to 'src/viewport_func.h')
-rw-r--r-- | src/viewport_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport_func.h b/src/viewport_func.h index 8e5a2b1d7..f5c9c9410 100644 --- a/src/viewport_func.h +++ b/src/viewport_func.h @@ -53,10 +53,10 @@ Vehicle *CheckMouseOverVehicle(); void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom); -bool ScrollWindowTo(int x, int y, Window *w, bool instant = false); +bool ScrollWindowTo(int x, int y, int z, Window *w, bool instant = false); bool ScrollMainWindowToTile(TileIndex tile, bool instant = false); -bool ScrollMainWindowTo(int x, int y, bool instant = false); +bool ScrollMainWindowTo(int x, int y, int z = -1, bool instant = false); extern Point _tile_fract_coords; |