From 1a0476535db15590efd8d08b671efaade9098b6f Mon Sep 17 00:00:00 2001 From: bjarni Date: Mon, 4 Sep 2006 09:07:52 +0000 Subject: (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 --- aircraft_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aircraft_cmd.c') diff --git a/aircraft_cmd.c b/aircraft_cmd.c index bb5985f92..3a7d64a9d 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -625,7 +625,7 @@ int32 CmdRefitAircraft(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.aircraft_base) >> 10; + cost = GetRefitCost(v->engine_type); } if (flags & DC_EXEC) { -- cgit v1.2.3-70-g09d2