From e35a13115309b931e1ce345c628ef5cf07332773 Mon Sep 17 00:00:00 2001 From: bjarni Date: Wed, 18 Jan 2006 15:05:01 +0000 Subject: (svn r3403) -Codechange: [multiheaded engines] the references between the front and rear engines are no longer saved instead the pointers are generated on load --- openttd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openttd.c') diff --git a/openttd.c b/openttd.c index d84e73b18..28c97c3b5 100644 --- a/openttd.c +++ b/openttd.c @@ -40,6 +40,7 @@ #include "depot.h" #include "waypoint.h" #include "ai/ai.h" +#include "train.h" #include @@ -1144,6 +1145,10 @@ bool AfterLoadGame(void) * subtype to the new format */ if (CheckSavegameVersionOldStyle(17, 1)) ConvertOldMultiheadToNew(); + /* Connect front and rear engines of multiheaded trains + since this info were no longer saved in savegame version 20 */ + if (!CheckSavegameVersion(20)) ConnectMultiheadedTrains(); + // Update current year SetDate(_date); -- cgit v1.2.3-54-g00ecf