Fix trains with non-front parts needing repair not being serviced

This commit is contained in:
Jonathan G Rennison
2021-11-20 12:43:38 +00:00
parent 4db14ccd18
commit 5723c317f7
3 changed files with 13 additions and 1 deletions

View File

@@ -191,6 +191,8 @@ struct Train FINAL : public GroundVehicle<Train, VEH_TRAIN> {
int advisory_max_speed;
};
bool ConsistNeedsRepair() const;
private:
MaxSpeedInfo GetCurrentMaxSpeedInfoInternal(bool update_state) const;