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/train_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/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); |