281 str = STR_8861_STOPPED; |
281 str = STR_8861_STOPPED; |
282 } else { |
282 } else { |
283 switch (v->current_order.type) { |
283 switch (v->current_order.type) { |
284 case OT_GOTO_STATION: { |
284 case OT_GOTO_STATION: { |
285 SetDParam(0, v->current_order.dest); |
285 SetDParam(0, v->current_order.dest); |
286 SetDParam(1, v->cur_speed * 10 / 16); |
286 SetDParam(1, v->GetDisplaySpeed()); |
287 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
287 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
288 } break; |
288 } break; |
289 |
289 |
290 case OT_GOTO_DEPOT: { |
290 case OT_GOTO_DEPOT: { |
291 /* Aircrafts always go to a station, even if you say depot */ |
291 /* Aircrafts always go to a station, even if you say depot */ |
292 SetDParam(0, v->current_order.dest); |
292 SetDParam(0, v->current_order.dest); |
293 SetDParam(1, v->cur_speed * 10 / 16); |
293 SetDParam(1, v->GetDisplaySpeed()); |
294 if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { |
294 if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { |
295 str = STR_HEADING_FOR_HANGAR + _patches.vehicle_speed; |
295 str = STR_HEADING_FOR_HANGAR + _patches.vehicle_speed; |
296 } else { |
296 } else { |
297 str = STR_HEADING_FOR_HANGAR_SERVICE + _patches.vehicle_speed; |
297 str = STR_HEADING_FOR_HANGAR_SERVICE + _patches.vehicle_speed; |
298 } |
298 } |