diff options
author | peter1138 <peter1138@openttd.org> | 2007-05-07 13:26:10 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-05-07 13:26:10 +0000 |
commit | ebe81b98ce72768feadfdf562931b4ff59e13ff3 (patch) | |
tree | 5f24fcf49bbf30b6652cc9804840346fce6e2eec /src/ship_cmd.cpp | |
parent | e4ada15d49693b346c460a064fca59b72ca2d974 (diff) | |
download | openttd-ebe81b98ce72768feadfdf562931b4ff59e13ff3.tar.xz |
(svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, for all vehicle types.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 77244bfb6..c3ddb5226 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -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) |