(svn r14090) -Fix: the vehicle window of articulated road vehicles would show the clone/refit button when the vehicle was not completely stopped in the depot.
This commit is contained in:
@@ -78,6 +78,7 @@ struct RoadVehicle : public Vehicle {
|
||||
int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
|
||||
Money GetRunningCost() const { return RoadVehInfo(this->engine_type)->running_cost * GetPriceByIndex(RoadVehInfo(this->engine_type)->running_cost_class); }
|
||||
bool IsInDepot() const { return this->u.road.state == RVSB_IN_DEPOT; }
|
||||
bool IsStoppedInDepot() const;
|
||||
void Tick();
|
||||
void OnNewDay();
|
||||
TileIndex GetOrderStationLocation(StationID station);
|
||||
|
Reference in New Issue
Block a user