forked from mirror/OpenTTD
(svn r6165) -Feature: control click Goto Depot will now make the vehicle service
at the depot and leave right away. To tell the difference the status of stopping vehicles will be in red, while servicing vehicles will be green. -Codechange: remove some dead code in CmdSendAircraftToHangar() since it is conflicting with new functionality. Now p2 means the same for all types
This commit is contained in:
@@ -490,7 +490,11 @@ static void ShipViewWndProc(Window *w, WindowEvent *e)
|
||||
Depot *depot = GetDepot(v->current_order.dest.depot);
|
||||
SetDParam(0, depot->town_index);
|
||||
SetDParam(1, v->cur_speed / 2);
|
||||
str = STR_HEADING_FOR_SHIP_DEPOT + _patches.vehicle_speed;
|
||||
if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) {
|
||||
str = STR_HEADING_FOR_SHIP_DEPOT + _patches.vehicle_speed;
|
||||
} else {
|
||||
str = STR_HEADING_FOR_SHIP_DEPOT_SERVICE + _patches.vehicle_speed;
|
||||
}
|
||||
} break;
|
||||
|
||||
case OT_LOADING:
|
||||
@@ -526,7 +530,7 @@ static void ShipViewWndProc(Window *w, WindowEvent *e)
|
||||
ScrollMainWindowTo(v->x_pos, v->y_pos);
|
||||
break;
|
||||
case 7: /* goto hangar */
|
||||
DoCommandP(v->tile, v->index, 0, NULL, CMD_SEND_SHIP_TO_DEPOT | CMD_MSG(STR_9819_CAN_T_SEND_SHIP_TO_DEPOT));
|
||||
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));
|
||||
break;
|
||||
case 8: /* refit */
|
||||
ShowShipRefitWindow(v);
|
||||
|
Reference in New Issue
Block a user