diff options
author | michi_cc <michi_cc@openttd.org> | 2012-05-14 19:56:49 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-05-14 19:56:49 +0000 |
commit | ce5c936b07517955ffa29a134907346b6cd4c148 (patch) | |
tree | 204c818783cda0baf6104f72e7897f5c311f0e3b /src/aircraft.h | |
parent | 58d474797e90fbc551a455000cfbda16f15ad4a5 (diff) | |
download | openttd-ce5c936b07517955ffa29a134907346b6cd4c148.tar.xz |
(svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max speed for vehicles.
Diffstat (limited to 'src/aircraft.h')
-rw-r--r-- | src/aircraft.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft.h b/src/aircraft.h index f47febd62..b6c847812 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -76,6 +76,7 @@ struct Aircraft FINAL : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> { int GetDisplaySpeed() const { return this->cur_speed; } int GetDisplayMaxSpeed() const { return this->vcache.cached_max_speed; } int GetSpeedOldUnits() const { return this->vcache.cached_max_speed * 10 / 128; } + int GetCurrentMaxSpeed() const { return this->GetSpeedOldUnits(); } Money GetRunningCost() const; bool IsInDepot() const { return (this->vehstatus & VS_HIDDEN) != 0 && IsHangarTile(this->tile); } bool Tick(); |