summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-13 16:54:19 +0000
committerrubidium <rubidium@openttd.org>2008-04-13 16:54:19 +0000
commita277d2df86c687b39d53af921df3442d790a9976 (patch)
treec86cfde879096a6a1bcd92d313e174e9a965cc68 /src/openttd.cpp
parent79f4d763edcda79f13e95cf9f86b9e2782003194 (diff)
downloadopenttd-a277d2df86c687b39d53af921df3442d790a9976.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.cpp7
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;