summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-11-08 13:02:05 +0000
committerfrosch <frosch@openttd.org>2009-11-08 13:02:05 +0000
commit6ca8f6e38025c9a7b484ffee669f27fad7ceb32d (patch)
tree9d745e0add388c8a8e058ec5399d66a4dc9d3d00 /src/roadveh.h
parentcc320dc4d0253fc349cffc2719f6d20bb7ced99d (diff)
downloadopenttd-6ca8f6e38025c9a7b484ffee669f27fad7ceb32d.tar.xz
(svn r18011) -Feature(ette): [NewGRF] CB 36 for roadvehicle property 09 'running cost factor'.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index ffcc953ed..279dad56b 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -121,13 +121,7 @@ struct RoadVehicle : public SpecializedVehicle<RoadVehicle, VEH_ROAD> {
SpriteID GetImage(Direction direction) const;
int GetDisplaySpeed() const { return this->cur_speed / 2; }
int GetDisplayMaxSpeed() const { return this->max_speed / 2; }
-
- Money GetRunningCost() const
- {
- const RoadVehicleInfo *rvi = RoadVehInfo(this->engine_type);
- return rvi->running_cost * GetPriceByIndex(rvi->running_cost_class);
- }
-
+ Money GetRunningCost() const;
int GetDisplayImageWidth(Point *offset = NULL) const;
bool IsInDepot() const { return this->state == RVSB_IN_DEPOT; }
bool IsStoppedInDepot() const;