From a277d2df86c687b39d53af921df3442d790a9976 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 13 Apr 2008 16:54:19 +0000 Subject: (svn r12689) -Feature: non-stop(or rather no non-stop) and via orders for road vehicles. --- src/openttd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/openttd.cpp') 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; -- cgit v1.2.3-54-g00ecf