Initial implementation of tracerestrict speed restriction feature
This commit is contained in:
@@ -44,6 +44,7 @@ enum VehicleRailFlags {
|
||||
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_PENDING_SPEED_RESTRICTION = 21,///< This vehicle has one or more pending speed restriction changes
|
||||
|
||||
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)
|
||||
};
|
||||
@@ -120,6 +121,7 @@ struct Train FINAL : public GroundVehicle<Train, VEH_TRAIN> {
|
||||
|
||||
uint16 reverse_distance;
|
||||
uint16 tunnel_bridge_signal_num;
|
||||
uint16 speed_restriction;
|
||||
|
||||
/** We don't want GCC to zero our struct! It already is zeroed and has an index! */
|
||||
Train() : GroundVehicleBase() {}
|
||||
|
Reference in New Issue
Block a user