summaryrefslogtreecommitdiff
path: root/src/roadveh_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
commit2179faf5c82c2eca3aeeaf7f08fa0f18ad4772c1 (patch)
treecc70dd0831f84779834db7751c18a5a7eb87e5b1 /src/roadveh_gui.cpp
parent41a0bd2b7499934518c5bfe0f3f79b9b0ad6237c (diff)
downloadopenttd-2179faf5c82c2eca3aeeaf7f08fa0f18ad4772c1.tar.xz
(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r--src/roadveh_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index d301a482e..73d314b0f 100644
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -97,7 +97,7 @@ static void RoadVehDetailsWndProc(Window *w, WindowEvent *e)
/* Draw max speed */
{
- SetDParam(0, v->max_speed * 10 / 32);
+ SetDParam(0, v->GetDisplayMaxSpeed());
DrawString(2, 25, STR_900E_MAX_SPEED, 0);
}