Improve performance of train breakdown detection

This commit is contained in:
Jonathan G Rennison
2019-01-19 04:39:16 +00:00
parent 841ea7639f
commit d87ac8ec7e
6 changed files with 15 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ enum VehicleRailFlags {
VRF_BEYOND_PLATFORM_END = 16,
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_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)
};