diff options
author | michi_cc <michi_cc@openttd.org> | 2011-08-03 20:55:08 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-08-03 20:55:08 +0000 |
commit | 08b7981f37431f57ca2fa8dd25db4088c7c69d4e (patch) | |
tree | d55fa560c79768b03077cb544552875e8064d17e /src/vehicle_base.h | |
parent | 442b92ff33c31317f77786f23539c2566f8252f3 (diff) | |
download | openttd-08b7981f37431f57ca2fa8dd25db4088c7c69d4e.tar.xz |
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 6781b472d..547344c27 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -100,7 +100,8 @@ enum GroundVehicleSubtypeFlags { /** Cached often queried values common to all vehicles. */ struct VehicleCache { - uint16 cached_max_speed; ///< Maximum speed of the consist (minimum of the max speed of all vehicles in the consist). + uint16 cached_max_speed; ///< Maximum speed of the consist (minimum of the max speed of all vehicles in the consist). + uint16 cached_cargo_age_period; ///< Number of ticks before carried cargo is aged. byte cached_vis_effect; ///< Visual effect to show (see #VisualEffect) }; @@ -213,6 +214,7 @@ public: byte cargo_subtype; ///< Used for livery refits (NewGRF variations) uint16 cargo_cap; ///< total capacity VehicleCargoList cargo; ///< The cargo this vehicle is carrying + uint16 cargo_age_counter; ///< Ticks till cargo is aged next. byte day_counter; ///< Increased by one for each day byte tick_counter; ///< Increased by one for each tick |