Fix unnecessary braking when leaving station with order without non-stop flag

This commit is contained in:
Jonathan G Rennison
2021-03-17 18:00:12 +00:00
parent fb64e29c6c
commit f7dcd66f08
3 changed files with 34 additions and 14 deletions

View File

@@ -495,6 +495,7 @@ public:
*/
inline void SetOccupancy(uint8 occupancy) { this->occupancy = occupancy; }
bool ShouldStopAtStation(StationID last_station_visited, StationID station, bool waypoint) const;
bool ShouldStopAtStation(const Vehicle *v, StationID station, bool waypoint) const;
bool CanLeaveWithCargo(bool has_cargo, CargoID cargo) const;