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/roadveh_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/roadveh_gui.cpp')
-rw-r--r-- | src/roadveh_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index 15d65057b..f67d81e02 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -91,7 +91,7 @@ static void RoadVehDetailsWndProc(Window *w, WindowEvent *e) SetDParam(0, (v->age + 365 < v->max_age) ? STR_AGE : STR_AGE_RED); SetDParam(2, v->max_age / 366); - SetDParam(3, RoadVehInfo(v->engine_type)->running_cost * _price.roadveh_running >> 8); + SetDParam(3, v->GetDisplayRunningCost()); DrawString(2, 15, STR_900D_AGE_RUNNING_COST_YR, 0); } |