mirror of https://github.com/OpenTTD/OpenTTD
(svn r20788) -Fix (r20733)[FS#4119]: start/stop all vehicles from non-train depots was broken
parent
17e6201d33
commit
c3d4763a00
|
@ -740,9 +740,11 @@ struct DepotWindow : Window {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEPOT_WIDGET_STOP_ALL:
|
case DEPOT_WIDGET_STOP_ALL:
|
||||||
case DEPOT_WIDGET_START_ALL:
|
case DEPOT_WIDGET_START_ALL: {
|
||||||
DoCommandP(this->window_number, (widget == DEPOT_WIDGET_START_ALL ? (1 << 0) : 0), this->type, CMD_MASS_START_STOP);
|
VehicleListIdentifier vli(VL_DEPOT_LIST, this->type, this->owner);
|
||||||
|
DoCommandP(this->window_number, (widget == DEPOT_WIDGET_START_ALL ? (1 << 0) : 0), vli.Pack(), CMD_MASS_START_STOP);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case DEPOT_WIDGET_SELL_ALL:
|
case DEPOT_WIDGET_SELL_ALL:
|
||||||
/* Only open the confimation window if there are anything to sell */
|
/* Only open the confimation window if there are anything to sell */
|
||||||
|
|
Loading…
Reference in New Issue