diff options
author | rubidium <rubidium@openttd.org> | 2009-06-16 13:52:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-06-16 13:52:18 +0000 |
commit | 512b021e261f042dccd9bdc254cd470a46e575f5 (patch) | |
tree | e78a9754bf6d326bf90b988cbe69ed74a6a763b4 /src/train_cmd.cpp | |
parent | 4b05617c42c89a323560a0bfd9225fcac9b69588 (diff) | |
download | openttd-512b021e261f042dccd9bdc254cd470a46e575f5.tar.xz |
(svn r16581) -Codechange: unify the access to Engine::lifelength.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 253981a46..8769f3aab 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -869,7 +869,7 @@ CommandCost CmdBuildRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, v->reliability = e->reliability; v->reliability_spd_dec = e->reliability_spd_dec; - v->max_age = e->lifelength * DAYS_IN_LEAP_YEAR; + v->max_age = e->GetLifeLengthInDays(); v->name = NULL; v->railtype = rvi->railtype; |