(svn r15210) -Fix: Vehicle::GetRunningCost() was wrong for ships and aircraft

This commit is contained in:
glx
2009-01-22 21:33:08 +00:00
parent 4ce7be6490
commit 12c89708cb
5 changed files with 15 additions and 6 deletions

View File

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