diff options
author | glx <glx@openttd.org> | 2009-01-22 21:33:08 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-01-22 21:33:08 +0000 |
commit | 12c89708cb463660d9e39c738471b1c018096cf0 (patch) | |
tree | 593969317bbdfd30857464beb43cbc118db5897d /src/aircraft.h | |
parent | 4ce7be6490c571d41fc1e49ecc2c15edb302a736 (diff) | |
download | openttd-12c89708cb463660d9e39c738471b1c018096cf0.tar.xz |
(svn r15210) -Fix: Vehicle::GetRunningCost() was wrong for ships and aircraft
Diffstat (limited to 'src/aircraft.h')
-rw-r--r-- | src/aircraft.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft.h b/src/aircraft.h index faf888f88..2f50517df 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -104,7 +104,7 @@ struct Aircraft : public Vehicle { SpriteID GetImage(Direction direction) const; int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; } int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 16; } - Money GetRunningCost() const { return AircraftVehInfo(this->engine_type)->running_cost * _price.aircraft_running; } + Money GetRunningCost() const; bool IsInDepot() const { return (this->vehstatus & VS_HIDDEN) != 0 && IsHangarTile(this->tile); } void Tick(); void OnNewDay(); |