diff options
author | Charles Krinke | 2009-04-19 00:11:14 +0000 |
---|---|---|
committer | Charles Krinke | 2009-04-19 00:11:14 +0000 |
commit | a416e75ddba9de7448c00ecb88cb2f1a1949dac2 (patch) | |
tree | 32b39c6cc4f82689b0b0ffb5ed0b8f875c534a03 /OpenSim/Region/CoreModules/World/Land/LandObject.cs | |
parent | Bug fix in HG asset posts. Get the inner assets not just from mem cache but f... (diff) | |
download | opensim-SC_OLD-a416e75ddba9de7448c00ecb88cb2f1a1949dac2.zip opensim-SC_OLD-a416e75ddba9de7448c00ecb88cb2f1a1949dac2.tar.gz opensim-SC_OLD-a416e75ddba9de7448c00ecb88cb2f1a1949dac2.tar.bz2 opensim-SC_OLD-a416e75ddba9de7448c00ecb88cb2f1a1949dac2.tar.xz |
Thank you kindly, MCortez, for a patch that:
This hooks up the LandManagementModule to handle the DeedParcelToGroup
packet. Now people can start testing land assigned to and owned by groups.
Also fixes a viewer crash issue when searching for and then joining a group
with an agent that is not already being tracked by groups server.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandObject.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 2cf739b..ce66e46 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -232,6 +232,18 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
232 | sendLandUpdateToAvatarsOverMe(); | 232 | sendLandUpdateToAvatarsOverMe(); |
233 | } | 233 | } |
234 | 234 | ||
235 | public void deedToGroup(UUID groupID) | ||
236 | { | ||
237 | LandData newData = landData.Copy(); | ||
238 | newData.OwnerID = groupID; | ||
239 | newData.GroupID = groupID; | ||
240 | newData.IsGroupOwned = true; | ||
241 | |||
242 | m_scene.LandChannel.UpdateLandObject(landData.LocalID, newData); | ||
243 | |||
244 | sendLandUpdateToAvatarsOverMe(); | ||
245 | } | ||
246 | |||
235 | public bool isEitherBannedOrRestricted(UUID avatar) | 247 | public bool isEitherBannedOrRestricted(UUID avatar) |
236 | { | 248 | { |
237 | if (isBannedFromLand(avatar)) | 249 | if (isBannedFromLand(avatar)) |