diff options
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/train_cmd.c b/train_cmd.c index a1fcf2938..0b7d60b69 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -1819,9 +1819,7 @@ int32 CmdRefitRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (amount != 0) { if (new_cid != v->cargo_type) { - int32 base_cost = (rvi->flags & RVI_WAGON) ? - _price.build_railwagon : _price.build_railvehicle; - cost += (EngInfo(v->engine_type)->refit_cost * base_cost) >> 9; + cost += GetRefitCost(v->engine_type); } num += amount; |