Mercurial > hg > openttd
changeset 16095:c5d11fc743df draft
(svn r20788) -Fix (r20733)[FS#4119]: start/stop all vehicles from non-train depots was broken
author | yexo <yexo@openttd.org> |
---|---|
date | Sun, 12 Sep 2010 16:54:39 +0000 |
parents | 519f7b08e280 |
children | 514927d91acf |
files | src/depot_gui.cpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -740,9 +740,11 @@ break; case DEPOT_WIDGET_STOP_ALL: - case DEPOT_WIDGET_START_ALL: - DoCommandP(this->window_number, (widget == DEPOT_WIDGET_START_ALL ? (1 << 0) : 0), this->type, CMD_MASS_START_STOP); + case DEPOT_WIDGET_START_ALL: { + 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; + } case DEPOT_WIDGET_SELL_ALL: /* Only open the confimation window if there are anything to sell */