summaryrefslogtreecommitdiff
path: root/src/ship_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-29 21:27:16 +0000
committerrubidium <rubidium@openttd.org>2007-08-29 21:27:16 +0000
commit3f3b013b99ac0378ed94098ca19e864d208880c7 (patch)
treec750fba2dc3e7efcc74cbccf329c29e874b3102e /src/ship_gui.cpp
parent99409d99d0cffdbd82aaa5f3a6f5da2c96623678 (diff)
downloadopenttd-3f3b013b99ac0378ed94098ca19e864d208880c7.tar.xz
(svn r10999) -Codechange: unify the way the running cost of a vehicle is determined. Patch by nycom.
Diffstat (limited to 'src/ship_gui.cpp')
-rw-r--r--src/ship_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_gui.cpp b/src/ship_gui.cpp
index 88010ced3..5f7bdd1fe 100644
--- a/src/ship_gui.cpp
+++ b/src/ship_gui.cpp
@@ -50,7 +50,7 @@ static void ShipDetailsWndProc(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, ShipVehInfo(v->engine_type)->running_cost * _price.ship_running >> 8);
+ SetDParam(3, v->GetDisplayRunningCost());
DrawString(2, 15, STR_9812_AGE_RUNNING_COST_YR, 0);
}