summaryrefslogtreecommitdiff
path: root/vehicle.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 /vehicle.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 'vehicle.c')
-rw-r--r--vehicle.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/vehicle.c b/vehicle.c
index e82bcf66e..c215c42a1 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -2252,7 +2252,7 @@ static void Save_VEHS(void)
* Converts all trains to the new subtype format introduced in savegame 16.2
* It also links multiheaded engines or make them forget they are multiheaded if no suitable partner is found
*/
-static inline void ConvertOldMultiheadToNew(void)
+void ConvertOldMultiheadToNew(void)
{
Vehicle *v;
FOR_ALL_VEHICLES(v) {
@@ -2396,11 +2396,6 @@ static void Load_VEHS(void)
}
}
}
-
- /* Connect front and rear engines of multiheaded trains and converts subtype to the new format */
- if (CheckSavegameVersionOldStyle(17, 1)) {
- ConvertOldMultiheadToNew();
- }
}
const ChunkHandler _veh_chunk_handlers[] = {