summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-08-03 20:55:08 +0000
committermichi_cc <michi_cc@openttd.org>2011-08-03 20:55:08 +0000
commit08b7981f37431f57ca2fa8dd25db4088c7c69d4e (patch)
treed55fa560c79768b03077cb544552875e8064d17e /src/vehicle_base.h
parent442b92ff33c31317f77786f23539c2566f8252f3 (diff)
downloadopenttd-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.h4
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