diff options
author | frosch <frosch@openttd.org> | 2008-12-16 18:09:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-12-16 18:09:40 +0000 |
commit | a87af0d7e57af8ec5bb04d7c6aa449d9c27ba32c (patch) | |
tree | 110f295bd42bc4e855acaeeb1206cc332c71be78 /src/oldloader.cpp | |
parent | 1599ade7caf73fbb49409644357062ef95fc04ad (diff) | |
download | openttd-a87af0d7e57af8ec5bb04d7c6aa449d9c27ba32c.tar.xz |
(svn r14680) -Feature(ette) [FS#2434]: Use property 4 (model life) also for wagons.
Setting property 4 to 0xFF will protect the vehicle (engine or wagon) from expireing. (Necessary since early introduction dates)
Savegames will only be affected after 'resetengines'.
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r-- | src/oldloader.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index 49482bb6d..67fa7742d 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -1347,13 +1347,7 @@ static const OldChunks engine_chunk[] = { static bool LoadOldEngine(LoadgameState *ls, int num) { Engine *e = GetTempDataEngine(num); - if (!LoadChunk(ls, e, engine_chunk)) return false; - - /* Make sure wagons are marked as do-not-age */ - if ((num >= 27 && num < 54) || (num >= 57 && num < 84) || (num >= 89 && num < 116)) - e->age = 0xFFFF; - - return true; + return LoadChunk(ls, e, engine_chunk); } static bool LoadOldEngineName(LoadgameState *ls, int num) |