ship_gui.c
changeset 4412 945e8a9bb89a
parent 4408 84ec2899adfa
child 4414 ed5b85ff5b0a
equal deleted inserted replaced
4411:c8eaf5401817 4412:945e8a9bb89a
   488 
   488 
   489 					case OT_GOTO_DEPOT: {
   489 					case OT_GOTO_DEPOT: {
   490 						Depot *depot = GetDepot(v->current_order.dest.depot);
   490 						Depot *depot = GetDepot(v->current_order.dest.depot);
   491 						SetDParam(0, depot->town_index);
   491 						SetDParam(0, depot->town_index);
   492 						SetDParam(1, v->cur_speed / 2);
   492 						SetDParam(1, v->cur_speed / 2);
   493 						str = STR_HEADING_FOR_SHIP_DEPOT + _patches.vehicle_speed;
   493 						if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) {
       
   494 							str = STR_HEADING_FOR_SHIP_DEPOT + _patches.vehicle_speed;
       
   495 						} else {
       
   496 							str = STR_HEADING_FOR_SHIP_DEPOT_SERVICE + _patches.vehicle_speed;
       
   497 						}
   494 					} break;
   498 					} break;
   495 
   499 
   496 					case OT_LOADING:
   500 					case OT_LOADING:
   497 					case OT_LEAVESTATION:
   501 					case OT_LEAVESTATION:
   498 						str = STR_882F_LOADING_UNLOADING;
   502 						str = STR_882F_LOADING_UNLOADING;
   524 					break;
   528 					break;
   525 				case 6: /* center main view */
   529 				case 6: /* center main view */
   526 					ScrollMainWindowTo(v->x_pos, v->y_pos);
   530 					ScrollMainWindowTo(v->x_pos, v->y_pos);
   527 					break;
   531 					break;
   528 				case 7: /* goto hangar */
   532 				case 7: /* goto hangar */
   529 					DoCommandP(v->tile, v->index, 0, NULL, CMD_SEND_SHIP_TO_DEPOT | CMD_MSG(STR_9819_CAN_T_SEND_SHIP_TO_DEPOT));
   533 					DoCommandP(v->tile, v->index, _ctrl_pressed ? 1 : 0, NULL, CMD_SEND_SHIP_TO_DEPOT | CMD_MSG(STR_9819_CAN_T_SEND_SHIP_TO_DEPOT));
   530 					break;
   534 					break;
   531 				case 8: /* refit */
   535 				case 8: /* refit */
   532 					ShowShipRefitWindow(v);
   536 					ShowShipRefitWindow(v);
   533 					break;
   537 					break;
   534 				case 9: /* show orders */
   538 				case 9: /* show orders */