Merge branch 'master' into jgrpp
# Conflicts: # src/lang/arabic_egypt.txt # src/station_cmd.cpp # src/station_cmd.h # src/timetable_cmd.cpp # src/train_cmd.cpp
This commit is contained in:
@@ -696,6 +696,7 @@ CommandCost CmdMassStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32
|
||||
if (vehicle_list_window) {
|
||||
if (!GenerateVehicleSortList(&list, vli)) return CMD_ERROR;
|
||||
} else {
|
||||
if (!IsDepotTile(tile) || !IsTileOwner(tile, _current_company)) return CMD_ERROR;
|
||||
/* Get the list of vehicles in the depot */
|
||||
BuildDepotVehicleList(vli.vtype, tile, &list, nullptr);
|
||||
}
|
||||
@@ -731,6 +732,7 @@ CommandCost CmdDepotSellAllVehicles(TileIndex tile, DoCommandFlag flags, uint32
|
||||
VehicleType vehicle_type = Extract<VehicleType, 0, 3>(p1);
|
||||
|
||||
if (!IsCompanyBuildableVehicleType(vehicle_type)) return CMD_ERROR;
|
||||
if (!IsDepotTile(tile) || !IsTileOwner(tile, _current_company)) return CMD_ERROR;
|
||||
|
||||
uint sell_command = GetCmdSellVeh(vehicle_type);
|
||||
|
||||
|
Reference in New Issue
Block a user