diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-20 20:56:54 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-20 20:56:54 +0000 |
commit | 0e997be11ea96de172a372a5285dbd9a1f5174b0 (patch) | |
tree | 3c40c82307fa0b48d130d6a239cca2eedcd874ba /src/train_cmd.cpp | |
parent | e0b0ecc5a7781266e32ae6ee888d82a996635440 (diff) | |
download | openttd-0e997be11ea96de172a372a5285dbd9a1f5174b0.tar.xz |
(svn r12205) -Codechange: rename RailVehicleInfo::running_cost_base to running_cost, inline with other vehicle types (It is the factor, not the base)
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 9da5eec69..e700d67b7 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3574,7 +3574,7 @@ Money Train::GetRunningCost() const do { const RailVehicleInfo *rvi = RailVehInfo(v->engine_type); - byte cost_factor = GetVehicleProperty(v, 0x0D, rvi->running_cost_base); + byte cost_factor = GetVehicleProperty(v, 0x0D, rvi->running_cost); if (cost_factor == 0) continue; cost += cost_factor * _price.running_rail[rvi->running_cost_class]; |