summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-01-14 19:51:50 +0000
committersmatz <smatz@openttd.org>2011-01-14 19:51:50 +0000
commit75351f4043c8ead164a79c43683b64fd9a3d3ad3 (patch)
treeae28d19b6666935ca7302c1bbb00dd0fa1d73331 /src
parent110e25e85970fa03627af5d256db02c300ac9c1a (diff)
downloadopenttd-75351f4043c8ead164a79c43683b64fd9a3d3ad3.tar.xz
(svn r21794) -Fix (r21790): convert train orders too (Rubidium)
Diffstat (limited to 'src')
-rw-r--r--src/saveload/station_sl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp
index fd8df51ca..8074040ee 100644
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -42,14 +42,16 @@ void MoveBuoysToWaypoints()
/* Buoy orders become waypoint orders */
OrderList *ol;
FOR_ALL_ORDER_LISTS(ol) {
- if (ol->GetFirstSharedVehicle()->type != VEH_SHIP) continue;
+ VehicleType vt = ol->GetFirstSharedVehicle()->type;
+ if (vt != VEH_SHIP && vt != VEH_TRAIN) continue;
for (Order *o = ol->GetFirstOrder(); o != NULL; o = o->next) UpdateWaypointOrder(o);
}
Vehicle *v;
FOR_ALL_VEHICLES(v) {
- if (v->type != VEH_SHIP) continue;
+ VehicleType vt = v->type;
+ if (vt != VEH_SHIP && vt != VEH_TRAIN) continue;
UpdateWaypointOrder(&v->current_order);
}