1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 15:09:10 +00:00

(svn r3082) made ChangeVehicleViewWindow() more readable (added in last commit)

This commit is contained in:
bjarni
2005-10-24 20:12:39 +00:00
parent bf467bd99c
commit 7cace07e01

View File

@@ -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);