diff options
author | rubidium <rubidium@openttd.org> | 2007-08-28 06:46:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-28 06:46:33 +0000 |
commit | 5e5d36d6b4c0d86abc9f8c346bda5254b7f8ba35 (patch) | |
tree | cc70dd0831f84779834db7751c18a5a7eb87e5b1 /src/aircraft_gui.cpp | |
parent | cb3843b8205c4fb7b04e95fa4b32cf036c7d89df (diff) | |
download | openttd-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/aircraft_gui.cpp')
-rw-r--r-- | src/aircraft_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index b90ddb3f1..ee8d39610 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -86,7 +86,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) /* Draw max speed */ { - SetDParam(0, v->max_speed * 10 / 16); + SetDParam(0, v->GetDisplayMaxSpeed()); DrawString(2, 25, STR_A00E_MAX_SPEED, 0); } |