roadveh_gui.c
changeset 4412 945e8a9bb89a
parent 4408 84ec2899adfa
child 4414 ed5b85ff5b0a
equal deleted inserted replaced
4411:c8eaf5401817 4412:945e8a9bb89a
   341 
   341 
   342 			case OT_GOTO_DEPOT: {
   342 			case OT_GOTO_DEPOT: {
   343 				Depot *depot = GetDepot(v->current_order.dest.depot);
   343 				Depot *depot = GetDepot(v->current_order.dest.depot);
   344 				SetDParam(0, depot->town_index);
   344 				SetDParam(0, depot->town_index);
   345 				SetDParam(1, v->cur_speed / 2);
   345 				SetDParam(1, v->cur_speed / 2);
   346 				str = STR_HEADING_FOR_ROAD_DEPOT + _patches.vehicle_speed;
   346 				if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) {
       
   347 					str = STR_HEADING_FOR_ROAD_DEPOT + _patches.vehicle_speed;
       
   348 				} else {
       
   349 					str = STR_HEADING_FOR_ROAD_DEPOT_SERVICE + _patches.vehicle_speed;
       
   350 				}
   347 			} break;
   351 			} break;
   348 
   352 
   349 			case OT_LOADING:
   353 			case OT_LOADING:
   350 			case OT_LEAVESTATION:
   354 			case OT_LEAVESTATION:
   351 				str = STR_882F_LOADING_UNLOADING;
   355 				str = STR_882F_LOADING_UNLOADING;
   377 			break;
   381 			break;
   378 		case 6: /* center main view */
   382 		case 6: /* center main view */
   379 			ScrollMainWindowTo(v->x_pos, v->y_pos);
   383 			ScrollMainWindowTo(v->x_pos, v->y_pos);
   380 			break;
   384 			break;
   381 		case 7: /* goto depot */
   385 		case 7: /* goto depot */
   382 			DoCommandP(v->tile, v->index, 0, NULL, CMD_SEND_ROADVEH_TO_DEPOT | CMD_MSG(STR_9018_CAN_T_SEND_VEHICLE_TO_DEPOT));
   386 			DoCommandP(v->tile, v->index, _ctrl_pressed ? 1 : 0, NULL, CMD_SEND_ROADVEH_TO_DEPOT | CMD_MSG(STR_9018_CAN_T_SEND_VEHICLE_TO_DEPOT));
   383 			break;
   387 			break;
   384 		case 8: /* turn around */
   388 		case 8: /* turn around */
   385 			DoCommandP(v->tile, v->index, 0, NULL, CMD_TURN_ROADVEH | CMD_MSG(STR_9033_CAN_T_MAKE_VEHICLE_TURN));
   389 			DoCommandP(v->tile, v->index, 0, NULL, CMD_TURN_ROADVEH | CMD_MSG(STR_9033_CAN_T_MAKE_VEHICLE_TURN));
   386 			break;
   390 			break;
   387 		case 9: /* show orders */
   391 		case 9: /* show orders */