From c5f0fe7c4074fc61dd54b756d2835fcf90ceaf05 Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 22 Jan 2009 21:33:08 +0000 Subject: (svn r15210) -Fix: Vehicle::GetRunningCost() was wrong for ships and aircraft --- src/aircraft.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/aircraft.h') 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(); -- cgit v1.2.3-54-g00ecf