Cache whether a train may have a depot or bridge speed restriction
This commit is contained in:
@@ -45,6 +45,7 @@ enum VehicleRailFlags {
|
||||
VRF_NOT_YET_IN_PLATFORM = 17,
|
||||
VRF_ADVANCE_IN_PLATFORM = 18,
|
||||
VRF_CONSIST_BREAKDOWN = 19,///< one or more vehicles in this consist have a breakdown of some sort (breakdown_ctr != 0)
|
||||
VRF_CONSIST_SPEED_REDUCTION = 20,///< one or more vehicles in this consist may be in a depot or on a bridge (may be false positive but not false negative)
|
||||
|
||||
VRF_IS_BROKEN = (1 << VRF_BREAKDOWN_POWER) | (1 << VRF_BREAKDOWN_SPEED) | (1 << VRF_BREAKDOWN_STOPPED), ///< Bitmask of all flags that indicate a broken train (braking is not included)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user