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 | 2179faf5c82c2eca3aeeaf7f08fa0f18ad4772c1 (patch) | |
tree | cc70dd0831f84779834db7751c18a5a7eb87e5b1 /src/train_gui.cpp | |
parent | 41a0bd2b7499934518c5bfe0f3f79b9b0ad6237c (diff) | |
download | openttd-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/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 378d874ad..ba3ad3046 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -421,7 +421,7 @@ static void DrawTrainDetailsWindow(Window *w) SetDParam(3, GetTrainRunningCost(v) >> 8); DrawString(x, 15, STR_885D_AGE_RUNNING_COST_YR, 0); - SetDParam(2, v->u.rail.cached_max_speed * 10 / 16); + SetDParam(2, v->GetDisplayMaxSpeed()); SetDParam(1, v->u.rail.cached_power); SetDParam(0, v->u.rail.cached_weight); SetDParam(3, v->u.rail.cached_max_te / 1000); |