diff options
author | bjarni <bjarni@openttd.org> | 2006-09-04 09:07:52 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-04 09:07:52 +0000 |
commit | 1a0476535db15590efd8d08b671efaade9098b6f (patch) | |
tree | d57b09d393145e52bd9bae2676d629b183f2abae /roadveh_cmd.c | |
parent | df135e8190283ff2bf85dfbccccf2b0bb466863a (diff) | |
download | openttd-1a0476535db15590efd8d08b671efaade9098b6f.tar.xz |
(svn r6376) -Codechange: [vehicle refit] moved all refit cost calculations into GetRefitCost()
Now it's possible to tell refit costs for an EngineID without actually having build a vehicle
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index e59d7c60c..3b52f3ccd 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -1838,7 +1838,7 @@ int32 CmdRefitRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) cost = 0; if (IS_HUMAN_PLAYER(v->owner) && new_cid != v->cargo_type) { - cost = (EngInfo(v->engine_type)->refit_cost * _price.roadveh_base) >> 10; + cost = GetRefitCost(v->engine_type); } if (flags & DC_EXEC) { |