diff options
author | peter1138 <peter1138@openttd.org> | 2008-08-15 17:54:43 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-08-15 17:54:43 +0000 |
commit | 9d0e1b635a22903c0fc719909a9ec95a1990ae88 (patch) | |
tree | 0322a181ba444470d5defcf3fcdc45463c6c6cb5 /src/ship_cmd.cpp | |
parent | 03f260059aae105ff6b0246717537f5d34985b07 (diff) | |
download | openttd-9d0e1b635a22903c0fc719909a9ec95a1990ae88.tar.xz |
(svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, indicating what it actually is.
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 bfd06c2f5..1b1eda4a4 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -337,7 +337,7 @@ static bool ShipAccelerate(Vehicle *v) static CommandCost EstimateShipCost(EngineID engine_type) { - return CommandCost(EXPENSES_NEW_VEHICLES, GetEngineProperty(engine_type, 0x0A, ShipVehInfo(engine_type)->base_cost) * (_price.ship_base >> 3) >> 5); + return CommandCost(EXPENSES_NEW_VEHICLES, GetEngineProperty(engine_type, 0x0A, ShipVehInfo(engine_type)->cost_factor) * (_price.ship_base >> 3) >> 5); } static void ShipArrivesAt(const Vehicle* v, Station* st) |