summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-10 08:30:15 +0000
committerrubidium <rubidium@openttd.org>2008-04-10 08:30:15 +0000
commite61dcab79d9dc3eba0b24094ee108606c970eac2 (patch)
tree81b8383f4d20454c1546e1f654d36905a9980922 /src/openttd.cpp
parent79cb5ec1c70e1661db721a9b5a1e21a375989a30 (diff)
downloadopenttd-e61dcab79d9dc3eba0b24094ee108606c970eac2.tar.xz
(svn r12648) -Feature: allow four different non-stop types in a single game instead of two. The "TTDP compatible order" setting now only sets the default behaviour of new trains.
-Feature: allow three different load type in a single game instead of two. One can choose full load all and full load any instead of full load being governed by the "full load any" patch setting.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index ec69aafb8..52fed7da1 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2445,6 +2445,15 @@ bool AfterLoadGame()
}
}
+ if (CheckSavegameVersion(93)) {
+ /* Rework of orders. */
+ Order *order;
+ FOR_ALL_ORDERS(order) order->ConvertFromOldSavegame();
+
+ Vehicle *v;
+ FOR_ALL_VEHICLES(v) v->current_order.ConvertFromOldSavegame();
+ }
+
return InitializeWindowsAndCaches();
}