summaryrefslogtreecommitdiff
path: root/src/aircraft.h
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-11-06 12:47:12 +0000
committerterkhen <terkhen@openttd.org>2010-11-06 12:47:12 +0000
commitcfac2ced69f072a3881e990837f82a884e27cd40 (patch)
tree3bd21023bbe8e4776f1625f81fabdd7baf7c248a /src/aircraft.h
parent609e6dae3fbdace3c753456268eec6dbd0df2db2 (diff)
downloadopenttd-cfac2ced69f072a3881e990837f82a884e27cd40.tar.xz
(svn r21095) -Codechange: Use a function to convert aircraft speed to old units.
Diffstat (limited to 'src/aircraft.h')
-rw-r--r--src/aircraft.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft.h b/src/aircraft.h
index a7d7761a1..cc9dd8641 100644
--- a/src/aircraft.h
+++ b/src/aircraft.h
@@ -91,6 +91,7 @@ struct Aircraft : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> {
SpriteID GetImage(Direction direction) const;
int GetDisplaySpeed() const { return this->cur_speed; }
int GetDisplayMaxSpeed() const { return this->max_speed; }
+ int GetSpeedOldUnits() const { return this->max_speed * 10 / 128; }
Money GetRunningCost() const;
bool IsInDepot() const { return (this->vehstatus & VS_HIDDEN) != 0 && IsHangarTile(this->tile); }
bool Tick();