summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-05-11 15:08:44 +0000
committerglx <glx@openttd.org>2008-05-11 15:08:44 +0000
commitc708ab3b486a2ecf1f163c900ff71fd46764bdfa (patch)
treedfb592610399f3c49e4292af8aacfd992b50d368 /src/vehicle_gui.cpp
parentc47926311b5f90086f0c7a44c30f3455748d524c (diff)
downloadopenttd-c708ab3b486a2ecf1f163c900ff71fd46764bdfa.tar.xz
(svn r13047) -Codechange: remove vp_d
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 804679f02..4c6c3f84e 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -738,7 +738,7 @@ void ChangeVehicleViewWindow(VehicleID from_index, VehicleID to_index)
if (w != NULL) {
w->window_number = to_index;
- WP(w, vp_d).follow_vehicle = to_index;
+ w->viewport->follow_vehicle = to_index;
w->SetDirty();
w = FindWindowById(WC_VEHICLE_ORDERS, from_index);
@@ -2091,7 +2091,7 @@ static void VehicleViewWndProc(Window *w, WindowEvent *e)
const Window *mainwindow = FindWindowById(WC_MAIN_WINDOW, 0);
/* code to allow the main window to 'follow' the vehicle if the ctrl key is pressed */
if (_ctrl_pressed && mainwindow->viewport->zoom == ZOOM_LVL_NORMAL) {
- WP(mainwindow, vp_d).follow_vehicle = v->index;
+ mainwindow->viewport->follow_vehicle = v->index;
} else {
ScrollMainWindowTo(v->x_pos, v->y_pos);
}