forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user