diff options
author | frosch <frosch@openttd.org> | 2012-07-07 12:48:53 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-07-07 12:48:53 +0000 |
commit | c1dd0107c71270e8949ddefac41424b3dd79eca4 (patch) | |
tree | 516e2b952b401221fae31d700916c0a90ecde1ec /src/roadveh.h | |
parent | 3d3ab26ee6a2748cab201b21280042420732eb08 (diff) | |
download | openttd-c1dd0107c71270e8949ddefac41424b3dd79eca4.tar.xz |
(svn r24380) -Fix [FS#5188]: RoadVehicle::IsInDepot did not check all articulated parts.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r-- | src/roadveh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh.h b/src/roadveh.h index 6358cef7f..6205f4b55 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -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(); |