(svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, for all vehicle types.

This commit is contained in:
2007-05-07 13:26:10 +00:00
parent 0de85b7eb0
commit 4591fb5b0d
5 changed files with 14 additions and 14 deletions

View File

@@ -421,7 +421,7 @@ static bool ShipAccelerate(Vehicle *v)
static int32 EstimateShipCost(EngineID engine_type)
{
return ShipVehInfo(engine_type)->base_cost * (_price.ship_base>>3)>>5;
return GetEngineProperty(engine_type, 0x0A, ShipVehInfo(engine_type)->base_cost) * (_price.ship_base>>3)>>5;
}
static void ShipArrivesAt(const Vehicle* v, Station* st)