(svn r21096) -Fix: Display the real max speed for aircrafts instead of always using the engine value.

This commit is contained in:
terkhen
2010-11-06 12:50:34 +00:00
parent cfac2ced69
commit 78d0a1cb1a
3 changed files with 7 additions and 4 deletions

View File

@@ -90,8 +90,8 @@ struct Aircraft : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> {
bool IsPrimaryVehicle() const { return this->IsNormalAircraft(); }
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; }
int GetDisplayMaxSpeed() const { return this->acache.cached_max_speed; }
int GetSpeedOldUnits() const { return this->acache.cached_max_speed * 10 / 128; }
Money GetRunningCost() const;
bool IsInDepot() const { return (this->vehstatus & VS_HIDDEN) != 0 && IsHangarTile(this->tile); }
bool Tick();