uint32_tconsist_cargo_information;///< Cache for NewGRF var 42. (Note: The cargotype is untranslated in the cache because the accessing GRF is yet unknown.)
uint32_tcompany_information;///< Cache for NewGRF var 43.
uint32_tposition_in_vehicle;///< Cache for NewGRF var 4D.
uint8_tcache_valid;///< Bitset that indicates which cache values are valid.
NO_UNIQUE_ADDRESSuint8_tcache_valid;///< Bitset that indicates which cache values are valid.
booloperator==(constNewGRFCache&)const=default;
};
@ -404,9 +404,9 @@ public:
Order*old_orders;///< Only used during conversion of old save games
};
NO_UNIQUE_ADDRESSNewGRFCachegrf_cache;///< Cache of often used calculated NewGRF values
Directioncur_image_valid_dir;///< NOSAVE: direction for which cur_image does not need to be regenerated on the next tick
NewGRFCachegrf_cache;///< Cache of often used calculated NewGRF values
VehicleCachevcache;///< Cache of often used vehicle values.