diff options
author | glx <glx@openttd.org> | 2008-05-11 15:08:44 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-05-11 15:08:44 +0000 |
commit | c708ab3b486a2ecf1f163c900ff71fd46764bdfa (patch) | |
tree | dfb592610399f3c49e4292af8aacfd992b50d368 /src/vehicle.cpp | |
parent | c47926311b5f90086f0c7a44c30f3455748d524c (diff) | |
download | openttd-c708ab3b486a2ecf1f163c900ff71fd46764bdfa.tar.xz |
(svn r13047) -Codechange: remove vp_d
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 9b8325832..85e0b9762 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -591,9 +591,9 @@ void Vehicle::PreDestructor() } Window *w = FindWindowById(WC_MAIN_WINDOW, 0); - if (w != NULL && WP(w, vp_d).follow_vehicle == this->index) { + if (w != NULL && w->viewport->follow_vehicle == this->index) { ScrollMainWindowTo(this->x_pos, this->y_pos, true); // lock the main view on the vehicle's last position - WP(w, vp_d).follow_vehicle = INVALID_VEHICLE; + w->viewport->follow_vehicle = INVALID_VEHICLE; } } |