(svn r16581) -Codechange: unify the access to Engine::lifelength.

This commit is contained in:
rubidium
2009-06-16 13:52:18 +00:00
parent 4b05617c42
commit 512b021e26
8 changed files with 17 additions and 6 deletions

View File

@@ -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;