(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 b2d0e14848
commit c5f0fe7c40
5 changed files with 15 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ struct Ship: public Vehicle {
SpriteID GetImage(Direction direction) const;
int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
Money GetRunningCost() const { return ShipVehInfo(this->engine_type)->running_cost * _price.ship_running; }
Money GetRunningCost() const;
bool IsInDepot() const { return this->u.ship.state == TRACK_BIT_DEPOT; }
void Tick();
void OnNewDay();