summaryrefslogtreecommitdiff
path: root/src/news_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/news_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/news_gui.cpp')
-rw-r--r--src/news_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 7de3a9370..46c18eeac 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -267,8 +267,8 @@ struct NewsWindow : Window {
case 0:
if (this->ni->flags & NF_VEHICLE) {
- Vehicle *v = GetVehicle(this->ni->data_a);
- ScrollMainWindowTo(v->x_pos, v->y_pos);
+ const Vehicle *v = GetVehicle(this->ni->data_a);
+ ScrollMainWindowTo(v->x_pos, v->y_pos, v->z_pos);
} else if (this->ni->flags & NF_TILE) {
if (_ctrl_pressed) {
ShowExtraViewPortWindow(this->ni->data_a);