summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-17 11:12:56 +0000
committerrubidium <rubidium@openttd.org>2008-08-17 11:12:56 +0000
commit3663965f3e92bd853ffff3a71162ffede78bfd66 (patch)
treed99684835fc02996b9565f9d0514c28e88cfad70 /src/roadveh.h
parentb6b9cd9d51de7213f3d8d6fa73f341cfc28a1424 (diff)
downloadopenttd-3663965f3e92bd853ffff3a71162ffede78bfd66.tar.xz
(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.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 984f0f249..305a76e9a 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -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);