diff options
author | frosch <frosch@openttd.org> | 2013-12-13 20:21:04 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-12-13 20:21:04 +0000 |
commit | e0d69933f607b7ec20dfe69a2a699c4db6c2ccd1 (patch) | |
tree | a483564e9c03006e536ffefae6a93434c5608f78 /src/vehicle_base.h | |
parent | 07ecc26efaea11350af69fe737a0826fe6bb6f25 (diff) | |
download | openttd-e0d69933f607b7ec20dfe69a2a699c4db6c2ccd1.tar.xz |
(svn r26157) -Feature: [NewGRF] Vehicle variable 4D for determining the position within an articulated vehicle.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 4c37847d9..261b8ed03 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -58,6 +58,7 @@ enum NewGRFCacheValidValues { NCVV_POSITION_SAME_ID_LENGTH = 1, ///< This bit will be set if the NewGRF var 41 currently stored is valid. NCVV_CONSIST_CARGO_INFORMATION = 2, ///< This bit will be set if the NewGRF var 42 currently stored is valid. NCVV_COMPANY_INFORMATION = 3, ///< This bit will be set if the NewGRF var 43 currently stored is valid. + NCVV_POSITION_IN_VEHICLE = 4, ///< This bit will be set if the NewGRF var 4D currently stored is valid. NCVV_END, ///< End of the bits. }; @@ -68,6 +69,7 @@ struct NewGRFCache { uint32 position_same_id_length; ///< Cache for NewGRF var 41. uint32 consist_cargo_information; ///< Cache for NewGRF var 42. (Note: The cargotype is untranslated in the cache because the accessing GRF is yet unknown.) uint32 company_information; ///< Cache for NewGRF var 43. + uint32 position_in_vehicle; ///< Cache for NewGRF var 4D. uint8 cache_valid; ///< Bitset that indicates which cache values are valid. }; |