(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:
bjarni
2006-09-04 09:07:52 +00:00
parent df135e8190
commit 1a0476535d
6 changed files with 25 additions and 6 deletions

View File

@@ -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) {