summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-11-06 12:39:18 +0000
committerterkhen <terkhen@openttd.org>2010-11-06 12:39:18 +0000
commitd699c4a345503df0147de80c7462376f7ff130da (patch)
treee6a3d30744d8b08389bc7826ad77f25e78a4f547 /src/vehicle_base.h
parent8eb3d653da176d4bd4b966065965001d18e37e90 (diff)
downloadopenttd-d699c4a345503df0147de80c7462376f7ff130da.tar.xz
(svn r21091) -Codechange: Add bit constants for checking NewGRFCache validity.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index 1c794cb09..13f71c1c7 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -46,6 +46,14 @@ enum VehicleFlags {
VF_STOP_LOADING, ///< Don't load anymore during the next load cycle.
};
+/** Bit numbers used to indicate which of the #NewGRFCache values are valid. */
+enum NewGRFCacheValidValues {
+ NCVV_POSITION_CONSIST_LENGTH = 0, ///< This bit will be set if the NewGRF var 40 currently stored is valid.
+ 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.
+};
+
/** Cached often queried (NewGRF) values */
struct NewGRFCache {
/* Values calculated when they are requested for the first time after invalidating the NewGRF cache. */