diff options
author | rubidium <rubidium@openttd.org> | 2007-08-29 21:27:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-29 21:27:16 +0000 |
commit | 3f3b013b99ac0378ed94098ca19e864d208880c7 (patch) | |
tree | c750fba2dc3e7efcc74cbccf329c29e874b3102e /src/train_gui.cpp | |
parent | 99409d99d0cffdbd82aaa5f3a6f5da2c96623678 (diff) | |
download | openttd-3f3b013b99ac0378ed94098ca19e864d208880c7.tar.xz |
(svn r10999) -Codechange: unify the way the running cost of a vehicle is determined. Patch by nycom.
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index bad613344..f88ab54ab 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -209,7 +209,7 @@ static void DrawTrainDetailsWindow(Window *w) SetDParam(0, (v->age + 365 < v->max_age) ? STR_AGE : STR_AGE_RED); SetDParam(2, v->max_age / 366); - SetDParam(3, GetTrainRunningCost(v) >> 8); + SetDParam(3, v->GetDisplayRunningCost()); DrawString(x, 15, STR_885D_AGE_RUNNING_COST_YR, 0); SetDParam(2, v->GetDisplayMaxSpeed()); |