diff options
author | rubidium <rubidium@openttd.org> | 2008-04-13 16:54:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-13 16:54:19 +0000 |
commit | e8ee93b5938642bb25e0a5e349d9ce4c7c071960 (patch) | |
tree | c86cfde879096a6a1bcd92d313e174e9a965cc68 /src/openttd.cpp | |
parent | 145ea544749580b0390b4b69b6e3772995d51502 (diff) | |
download | openttd-e8ee93b5938642bb25e0a5e349d9ce4c7c071960.tar.xz |
(svn r12689) -Feature: non-stop(or rather no non-stop) and via orders for road vehicles.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 25798c486..13edd2423 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2451,7 +2451,12 @@ bool AfterLoadGame() FOR_ALL_ORDERS(order) order->ConvertFromOldSavegame(); Vehicle *v; - FOR_ALL_VEHICLES(v) v->current_order.ConvertFromOldSavegame(); + FOR_ALL_VEHICLES(v) { + v->current_order.ConvertFromOldSavegame(); + if (v->type == VEH_ROAD && v->IsPrimaryVehicle() && v->prev_shared == NULL) { + FOR_VEHICLE_ORDERS(v, order) order->SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS); + } + } } else if (CheckSavegameVersion(94)) { /* Unload and transfer are now mutual exclusive. */ Order *order; |