(svn r5819) - NewGRF: add support for refit costs specified in NewGRF. This may affect the default refit costs for the default rail vehicles.

This commit is contained in:
peter1138
2006-08-09 20:44:23 +00:00
parent 83290e8cea
commit 53d2650d9b
5 changed files with 11 additions and 6 deletions

View File

@@ -1081,7 +1081,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 = _price.ship_base >> 7;
cost = (EngInfo(v->engine_type)->refit_cost * _price.ship_base) >> 10;
}
if (flags & DC_EXEC) {