diff options
Diffstat (limited to 'src/roadveh.h')
-rw-r--r-- | src/roadveh.h | 8 |
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; |