summaryrefslogtreecommitdiff
path: root/src/waypoint_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-03-15 15:25:18 +0000
committersmatz <smatz@openttd.org>2009-03-15 15:25:18 +0000
commitaf293142fede91cc31e98c7e05d9ecfef752b077 (patch)
treec041152a492c41b5020c575b6fde72be6dc3a5b8 /src/waypoint_gui.cpp
parent4f8eeca437a57c160364cdb97182ae1566e6c693 (diff)
downloadopenttd-af293142fede91cc31e98c7e05d9ecfef752b077.tar.xz
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
Diffstat (limited to 'src/waypoint_gui.cpp')
-rw-r--r--src/waypoint_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp
index 1c4321e2a..21cead21c 100644
--- a/src/waypoint_gui.cpp
+++ b/src/waypoint_gui.cpp
@@ -87,7 +87,7 @@ public:
{
int x = TileX(this->wp->xy) * TILE_SIZE;
int y = TileY(this->wp->xy) * TILE_SIZE;
- ScrollWindowTo(x, y, this);
+ ScrollWindowTo(x, y, -1, this);
}
virtual void OnQueryTextFinished(char *str)