Infra sharing: Allow using mass start/stop buttons in other company depots

See: #469
This commit is contained in:
Jonathan G Rennison
2022-12-31 18:00:19 +00:00
parent d6046086da
commit 5bcc420af3

View File

@@ -722,7 +722,7 @@ CommandCost CmdMassStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32
if (vehicle_list_window) {
if (!GenerateVehicleSortList(&list, vli, GB(p1, 8, 8))) return CMD_ERROR;
} else {
if (!IsDepotTile(tile) || !IsTileOwner(tile, _current_company)) return CMD_ERROR;
if (!IsDepotTile(tile)) return CMD_ERROR;
/* Get the list of vehicles in the depot */
BuildDepotVehicleList(vli.vtype, tile, &list, nullptr);
}