summaryrefslogtreecommitdiff
path: root/src/ship.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-01-22 21:33:08 +0000
committerglx <glx@openttd.org>2009-01-22 21:33:08 +0000
commitc5f0fe7c4074fc61dd54b756d2835fcf90ceaf05 (patch)
tree593969317bbdfd30857464beb43cbc118db5897d /src/ship.h
parentb2d0e14848816c8004055824f192abdaedcc0fbf (diff)
downloadopenttd-c5f0fe7c4074fc61dd54b756d2835fcf90ceaf05.tar.xz
(svn r15210) -Fix: Vehicle::GetRunningCost() was wrong for ships and aircraft
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship.h b/src/ship.h
index 79ab4c156..831a692dd 100644
--- a/src/ship.h
+++ b/src/ship.h
@@ -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();