295 str = STR_8861_STOPPED; |
295 str = STR_8861_STOPPED; |
296 } else { |
296 } else { |
297 switch (v->current_order.type) { |
297 switch (v->current_order.type) { |
298 case OT_GOTO_STATION: { |
298 case OT_GOTO_STATION: { |
299 SetDParam(0, v->current_order.dest); |
299 SetDParam(0, v->current_order.dest); |
300 SetDParam(1, v->cur_speed * 10 / 32); |
300 SetDParam(1, v->GetDisplaySpeed()); |
301 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
301 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
302 } break; |
302 } break; |
303 |
303 |
304 case OT_GOTO_DEPOT: { |
304 case OT_GOTO_DEPOT: { |
305 Depot *depot = GetDepot(v->current_order.dest); |
305 Depot *depot = GetDepot(v->current_order.dest); |
306 SetDParam(0, depot->town_index); |
306 SetDParam(0, depot->town_index); |
307 SetDParam(1, v->cur_speed * 10 / 32); |
307 SetDParam(1, v->GetDisplaySpeed()); |
308 if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { |
308 if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { |
309 str = STR_HEADING_FOR_ROAD_DEPOT + _patches.vehicle_speed; |
309 str = STR_HEADING_FOR_ROAD_DEPOT + _patches.vehicle_speed; |
310 } else { |
310 } else { |
311 str = STR_HEADING_FOR_ROAD_DEPOT_SERVICE + _patches.vehicle_speed; |
311 str = STR_HEADING_FOR_ROAD_DEPOT_SERVICE + _patches.vehicle_speed; |
312 } |
312 } |