diff options
author | peter1138 <peter1138@openttd.org> | 2007-01-30 21:10:04 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-01-30 21:10:04 +0000 |
commit | 8933ffd9acf617cbb30ef3f1abcac166d3f4f97b (patch) | |
tree | ef47070cdf31f3435f0b446ef917dbd3af38cc27 /src/roadveh_gui.cpp | |
parent | 6e85681ae05137994b245426a31e0e184cf91a7e (diff) | |
download | openttd-8933ffd9acf617cbb30ef3f1abcac166d3f4f97b.tar.xz |
(svn r8464) -Revert (r4322): Change back to converting to mph in the GUI code, as 1 mph == 1.6 km/h is too far out for some people.
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r-- | src/roadveh_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index c4308cd54..e9e06d524 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -206,14 +206,14 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e) switch (v->current_order.type) { case OT_GOTO_STATION: { SetDParam(0, v->current_order.dest); - SetDParam(1, v->cur_speed / 2); + SetDParam(1, v->cur_speed * 10 / 32); str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; } break; case OT_GOTO_DEPOT: { Depot *depot = GetDepot(v->current_order.dest); SetDParam(0, depot->town_index); - SetDParam(1, v->cur_speed / 2); + SetDParam(1, v->cur_speed * 10 / 32); if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { str = STR_HEADING_FOR_ROAD_DEPOT + _patches.vehicle_speed; } else { @@ -229,7 +229,7 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e) default: if (v->num_orders == 0) { str = STR_NO_ORDERS + _patches.vehicle_speed; - SetDParam(0, v->cur_speed / 2); + SetDParam(0, v->cur_speed * 10 / 32); } else { str = STR_EMPTY; } |