diff options
author | terkhen <terkhen@openttd.org> | 2010-11-06 12:50:34 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-11-06 12:50:34 +0000 |
commit | 78d0a1cb1af68863e3e7bfed584f4a94ee46f611 (patch) | |
tree | 3919b2ecde621dc86ccf82c7f64e564ecd7db520 /src/aircraft.h | |
parent | cfac2ced69f072a3881e990837f82a884e27cd40 (diff) | |
download | openttd-78d0a1cb1af68863e3e7bfed584f4a94ee46f611.tar.xz |
(svn r21096) -Fix: Display the real max speed for aircrafts instead of always using the engine value.
Diffstat (limited to 'src/aircraft.h')
-rw-r--r-- | src/aircraft.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aircraft.h b/src/aircraft.h index cc9dd8641..34e6e2082 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -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(); |