summaryrefslogtreecommitdiff
path: root/src/ship_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-28 06:46:33 +0000
committerrubidium <rubidium@openttd.org>2007-08-28 06:46:33 +0000
commit5e5d36d6b4c0d86abc9f8c346bda5254b7f8ba35 (patch)
treecc70dd0831f84779834db7751c18a5a7eb87e5b1 /src/ship_gui.cpp
parentcb3843b8205c4fb7b04e95fa4b32cf036c7d89df (diff)
downloadopenttd-5e5d36d6b4c0d86abc9f8c346bda5254b7f8ba35.tar.xz
(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. 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 d1e64d39a..fd4456c3b 100644
--- a/src/ship_gui.cpp
+++ b/src/ship_gui.cpp
@@ -56,7 +56,7 @@ static void ShipDetailsWndProc(Window *w, WindowEvent *e)
/* Draw max speed */
{
- SetDParam(0, v->max_speed * 10 / 32);
+ SetDParam(0, v->GetDisplayMaxSpeed());
DrawString(2, 25, STR_9813_MAX_SPEED, 0);
}