204 str = STR_8861_STOPPED; |
204 str = STR_8861_STOPPED; |
205 } else { |
205 } else { |
206 switch (v->current_order.type) { |
206 switch (v->current_order.type) { |
207 case OT_GOTO_STATION: { |
207 case OT_GOTO_STATION: { |
208 SetDParam(0, v->current_order.dest); |
208 SetDParam(0, v->current_order.dest); |
209 SetDParam(1, v->cur_speed / 2); |
209 SetDParam(1, v->cur_speed * 10 / 32); |
210 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
210 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
211 } break; |
211 } break; |
212 |
212 |
213 case OT_GOTO_DEPOT: { |
213 case OT_GOTO_DEPOT: { |
214 Depot *depot = GetDepot(v->current_order.dest); |
214 Depot *depot = GetDepot(v->current_order.dest); |
215 SetDParam(0, depot->town_index); |
215 SetDParam(0, depot->town_index); |
216 SetDParam(1, v->cur_speed / 2); |
216 SetDParam(1, v->cur_speed * 10 / 32); |
217 if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { |
217 if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { |
218 str = STR_HEADING_FOR_ROAD_DEPOT + _patches.vehicle_speed; |
218 str = STR_HEADING_FOR_ROAD_DEPOT + _patches.vehicle_speed; |
219 } else { |
219 } else { |
220 str = STR_HEADING_FOR_ROAD_DEPOT_SERVICE + _patches.vehicle_speed; |
220 str = STR_HEADING_FOR_ROAD_DEPOT_SERVICE + _patches.vehicle_speed; |
221 } |
221 } |