diff options
author | rubidium <rubidium@openttd.org> | 2007-08-26 20:43:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-26 20:43:22 +0000 |
commit | a5b32d8d7238ae769a9dc3bcc71aaaba213058b9 (patch) | |
tree | 774788b69d486a12f8c1135fa3ca8e087d508d2a /src/aircraft_gui.cpp | |
parent | a83ccad6bd289715da504f9ab514ac781ece5608 (diff) | |
download | openttd-a5b32d8d7238ae769a9dc3bcc71aaaba213058b9.tar.xz |
(svn r10984) -Codechange: unify the way one can get the current speed in the same forwat so we can display it.
Diffstat (limited to 'src/aircraft_gui.cpp')
-rw-r--r-- | src/aircraft_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index c6903e93d..20828d67c 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -283,14 +283,14 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e) switch (v->current_order.type) { case OT_GOTO_STATION: { SetDParam(0, v->current_order.dest); - SetDParam(1, v->cur_speed * 10 / 16); + SetDParam(1, v->GetDisplaySpeed()); str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; } break; case OT_GOTO_DEPOT: { /* Aircrafts always go to a station, even if you say depot */ SetDParam(0, v->current_order.dest); - SetDParam(1, v->cur_speed * 10 / 16); + SetDParam(1, v->GetDisplaySpeed()); if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { str = STR_HEADING_FOR_HANGAR + _patches.vehicle_speed; } else { @@ -305,7 +305,7 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e) default: if (v->num_orders == 0) { str = STR_NO_ORDERS + _patches.vehicle_speed; - SetDParam(0, v->cur_speed * 10 / 16); + SetDParam(0, v->GetDisplaySpeed()); } else { str = STR_EMPTY; } |