diff options
author | smatz <smatz@openttd.org> | 2009-08-06 12:44:10 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-06 12:44:10 +0000 |
commit | adcc5338f3bb8e10e0af57009b3feeb48e798771 (patch) | |
tree | 71e5bf5c6220fc9004b34d6e5aca4b873baa097f /src/vehicle.cpp | |
parent | 9c25f1bdb7c186207c3c07542be976bc40a91e40 (diff) | |
download | openttd-adcc5338f3bb8e10e0af57009b3feeb48e798771.tar.xz |
(svn r17085) -Codechange: unify the place where vehicle's cargo ages
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 886678e3a..11f75d17e 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -585,6 +585,8 @@ void CallVehicleTicks() case VEH_ROAD: case VEH_AIRCRAFT: case VEH_SHIP: + if (_age_cargo_skip_counter == 0) v->cargo.AgeCargo(); + if (v->type == VEH_TRAIN && Train::From(v)->IsWagon()) continue; if (v->type == VEH_AIRCRAFT && v->subtype != AIR_HELICOPTER) continue; if (v->type == VEH_ROAD && !RoadVehicle::From(v)->IsRoadVehFront()) continue; |