(svn r21095) -Codechange: Use a function to convert aircraft speed to old units.

This commit is contained in:
terkhen
2010-11-06 12:47:12 +00:00
parent 609e6dae3f
commit cfac2ced69
3 changed files with 16 additions and 3 deletions

View File

@@ -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();