diff options
author | bjarni <bjarni@openttd.org> | 2005-10-24 20:12:39 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-10-24 20:12:39 +0000 |
commit | 7cace07e01b555b88d234f58e36aec8d487e0636 (patch) | |
tree | 62516df2b0901a0e5528431abf5e5ebd92ad9b33 | |
parent | bf467bd99c36842c259dd11b6ac2be69db72e745 (diff) | |
download | openttd-7cace07e01b555b88d234f58e36aec8d487e0636.tar.xz |
(svn r3082) made ChangeVehicleViewWindow() more readable (added in last commit)
-rw-r--r-- | vehicle_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index 35aef4581..bff8ec1b1 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -1099,7 +1099,7 @@ void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v) if (w != NULL) { w->window_number = to_v->index; - WP(w, vp_d).follow_vehicle = (VehicleID)(w->window_number & 0xFFFF); + WP(w, vp_d).follow_vehicle = to_v->index; // tell the viewport to follow the new vehicle SetWindowDirty(w); w = FindWindowById(WC_VEHICLE_ORDERS, from_v->index); |