211 str = STR_8861_STOPPED; |
211 str = STR_8861_STOPPED; |
212 } else { |
212 } else { |
213 switch (v->current_order.type) { |
213 switch (v->current_order.type) { |
214 case OT_GOTO_STATION: { |
214 case OT_GOTO_STATION: { |
215 SetDParam(0, v->current_order.dest); |
215 SetDParam(0, v->current_order.dest); |
216 SetDParam(1, v->cur_speed / 2); |
216 SetDParam(1, v->cur_speed * 10 / 32); |
217 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
217 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
218 } break; |
218 } break; |
219 |
219 |
220 case OT_GOTO_DEPOT: { |
220 case OT_GOTO_DEPOT: { |
221 Depot *depot = GetDepot(v->current_order.dest); |
221 Depot *depot = GetDepot(v->current_order.dest); |
222 SetDParam(0, depot->town_index); |
222 SetDParam(0, depot->town_index); |
223 SetDParam(1, v->cur_speed / 2); |
223 SetDParam(1, v->cur_speed * 10 / 32); |
224 if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { |
224 if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) { |
225 str = STR_HEADING_FOR_SHIP_DEPOT + _patches.vehicle_speed; |
225 str = STR_HEADING_FOR_SHIP_DEPOT + _patches.vehicle_speed; |
226 } else { |
226 } else { |
227 str = STR_HEADING_FOR_SHIP_DEPOT_SERVICE + _patches.vehicle_speed; |
227 str = STR_HEADING_FOR_SHIP_DEPOT_SERVICE + _patches.vehicle_speed; |
228 } |
228 } |