diff options
author | celestar <celestar@openttd.org> | 2006-03-29 16:30:26 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-03-29 16:30:26 +0000 |
commit | a7d8ad0004e00e1d917d636f4d69fd58f5edbfa3 (patch) | |
tree | c1903bfd394f761768fa9d907c58a76229e1b2f8 /vehicle.c | |
parent | 9c96bcb9975c4f9e197cebf0562f81de5be99b5b (diff) | |
download | openttd-a7d8ad0004e00e1d917d636f4d69fd58f5edbfa3.tar.xz |
(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -218,6 +218,10 @@ void AfterLoadVehicles(void) FOR_ALL_VEHICLES(v) { v->first = NULL; + if (v->type == VEH_Train) v->u.rail.first_engine = INVALID_ENGINE; + } + + FOR_ALL_VEHICLES(v) { if (v->type == VEH_Train && (IsFrontEngine(v) || IsFreeWagon(v))) TrainConsistChanged(v); } |