From cfac2ced69f072a3881e990837f82a884e27cd40 Mon Sep 17 00:00:00 2001 From: terkhen Date: Sat, 6 Nov 2010 12:47:12 +0000 Subject: (svn r21095) -Codechange: Use a function to convert aircraft speed to old units. --- src/aircraft.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/aircraft.h') 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 { 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(); -- cgit v1.2.3-54-g00ecf