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 | 21195804c3297d7e6abde159cd115ad2b9ebcb3a (patch) | |
tree | d57b09d393145e52bd9bae2676d629b183f2abae /ship_cmd.c | |
parent | f5a46bbd9f6ce13f2c6a5d0cb373f9bf681018fe (diff) | |
download | openttd-21195804c3297d7e6abde159cd115ad2b9ebcb3a.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 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index d014ba485..f8cc1822d 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -1121,7 +1121,7 @@ int32 CmdRefitShip(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.ship_base) >> 10; + cost = GetRefitCost(v->engine_type); } if (flags & DC_EXEC) { |