Add fast path to vehicle var 0x42 if only upper byte is required

This commit is contained in:
Jonathan G Rennison
2021-05-20 18:34:06 +01:00
parent aa0c1ba2e0
commit a8157770df
2 changed files with 19 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ enum NewGRFCacheValidValues {
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_CONSIST_CARGO_INFORMATION_UD = 5, ///< This bit will be set if the uppermost byte of NewGRF var 42 currently stored is valid.
NCVV_END, ///< End of the bits.
};