diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-21 19:09:10 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-21 19:09:10 +0000 |
commit | f6e4dc4d8c48d635e4f31d6f04498bbf6076ab68 (patch) | |
tree | ea01512db1a1157040bbc860c2b76afcf0fe4eee /src/train_cmd.cpp | |
parent | 67bf63ddff5ff88cb1770a16d1c9e697bddec55c (diff) | |
download | openttd-f6e4dc4d8c48d635e4f31d6f04498bbf6076ab68.tar.xz |
(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it.
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 e700d67b7..f38e39524 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3577,7 +3577,7 @@ Money Train::GetRunningCost() const byte cost_factor = GetVehicleProperty(v, 0x0D, rvi->running_cost); if (cost_factor == 0) continue; - cost += cost_factor * _price.running_rail[rvi->running_cost_class]; + cost += cost_factor * GetPriceByIndex(rvi->running_cost_class); } while ((v = GetNextVehicle(v)) != NULL); return cost; |