summaryrefslogtreecommitdiff
path: root/src/oldloader.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-12-16 18:09:40 +0000
committerfrosch <frosch@openttd.org>2008-12-16 18:09:40 +0000
commita87af0d7e57af8ec5bb04d7c6aa449d9c27ba32c (patch)
tree110f295bd42bc4e855acaeeb1206cc332c71be78 /src/oldloader.cpp
parent1599ade7caf73fbb49409644357062ef95fc04ad (diff)
downloadopenttd-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.cpp8
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)