summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-04 20:18:39 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-04 20:18:39 +0000
commit4b464093e7e69272728afc730874d1d10a9a5d35 (patch)
tree0023f060e36599542eb0542969bba61ff0e4a72e /openttd.c
parent911a8aa08d81a327a32f54ea9776b711fe6bd0d4 (diff)
downloadopenttd-4b464093e7e69272728afc730874d1d10a9a5d35.tar.xz
(svn r3362) Fix issue with loading old (TTD) savegames:
- move call to convert from old to new train subtypes. - ensure AI is started for AI players.
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index 7d1438d21..d14861d88 100644
--- a/openttd.c
+++ b/openttd.c
@@ -1135,6 +1135,10 @@ bool AfterLoadGame(void)
// Load the sprites
GfxLoadSprites();
+ /* Connect front and rear engines of multiheaded trains and converts
+ * subtype to the new format */
+ if (CheckSavegameVersionOldStyle(17, 1)) ConvertOldMultiheadToNew();
+
// Update current year
SetDate(_date);