(svn r24380) -Fix [FS#5188]: RoadVehicle::IsInDepot did not check all articulated parts.

This commit is contained in:
frosch
2012-07-07 12:48:53 +00:00
parent 3d3ab26ee6
commit c1dd0107c7
2 changed files with 9 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ struct RoadVehicle FINAL : public GroundVehicle<RoadVehicle, VEH_ROAD> {
int GetDisplayMaxSpeed() const { return this->vcache.cached_max_speed / 2; }
Money GetRunningCost() const;
int GetDisplayImageWidth(Point *offset = NULL) const;
bool IsInDepot() const { return this->state == RVSB_IN_DEPOT; }
bool IsInDepot() const;
bool IsStoppedInDepot() const;
bool Tick();
void OnNewDay();