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 | dc8019575404425b52abc121c6bd9159596fee87 (patch) | |
tree | c750fba2dc3e7efcc74cbccf329c29e874b3102e /src/roadveh_gui.cpp | |
parent | fff12fd22e6e526c7a8259606bb9235f1ed97e06 (diff) | |
download | openttd-dc8019575404425b52abc121c6bd9159596fee87.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); } |