From 375673ec903719f0225b182cb62aab153c86e04e Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 24 May 2008 11:10:21 +0000 Subject: This enables return from the parcel object owner display. There's some oddness with the parcel counts, but if you can get past the oddness, you can return objects under an owner that you have permission to return. --- .../Modules/World/Land/LandManagementModule.cs | 30 +++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs') diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index 7163769..5bc28f7 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs @@ -902,7 +902,17 @@ namespace OpenSim.Region.Environment.Modules.World.Land public void handleParcelObjectOwnersRequest(int local_id, IClientAPI remote_client) { - landList[local_id].sendLandObjectOwners(remote_client); + lock (landList) + { + if (landList.ContainsKey(local_id)) + { + landList[local_id].sendLandObjectOwners(remote_client); + } + else + { + System.Console.WriteLine("[PARCEL]: Invalid land object passed for parcel object owner request"); + } + } } public void handleParcelAbandonRequest(int local_id, IClientAPI remote_client) @@ -1004,6 +1014,24 @@ namespace OpenSim.Region.Environment.Modules.World.Land AddLandObject(new_land); } + public void ReturnObjectsInParcel(int localID, uint returnType, LLUUID[] agentIDs, LLUUID[] taskIDs, IClientAPI remoteClient) + { + ILandObject selectedParcel = null; + lock (landList) + { + if (landList.ContainsKey(localID)) + selectedParcel = landList[localID]; + } + if (selectedParcel == null) + return; + + if (returnType == 16) // parcel return + { + selectedParcel.returnLandObjects(returnType, agentIDs, remoteClient); + } + + } + public void NoLandDataFromStorage() { ResetSimLandObjects(); -- cgit v1.1