From ac96722c1d6b8c6466fcd924a2d92d50853de042 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 16 Apr 2009 00:46:24 +0000 Subject: Fix build break and change some groups interfaces --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 11 ++++------- OpenSim/Region/CoreModules/World/Land/LandObject.cs | 2 +- OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 2 +- OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index b506434..2c57303 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -3420,7 +3420,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } - public void SendLandObjectOwners(Dictionary ownersAndCount) + public void SendLandObjectOwners(LandData land, Dictionary ownersAndCount) { int notifyCount = ownersAndCount.Count; ParcelObjectOwnersReplyPacket pack = (ParcelObjectOwnersReplyPacket)PacketPool.Instance.GetPacket(PacketType.ParcelObjectOwnersReply); @@ -3445,12 +3445,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP dataBlock[num] = new ParcelObjectOwnersReplyPacket.DataBlock(); dataBlock[num].Count = ownersAndCount[owner]; - if (m_GroupsModule != null) - { - //TODO: There's probably a better way to do this. - GroupProfileData gpd; - dataBlock[num].IsGroupOwned = m_GroupsModule.GetGroupProfile(owner, out gpd); - } + if (land.GroupID == owner) + dataBlock[num].IsGroupOwned = true; + dataBlock[num].OnlineStatus = true; //TODO: fix me later dataBlock[num].OwnerID = owner; diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index e3e49ba..a19b454 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs @@ -734,7 +734,7 @@ namespace OpenSim.Region.CoreModules.World.Land } } - remote_client.SendLandObjectOwners(primCount); + remote_client.SendLandObjectOwners(landData, primCount); } } diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index 0e9d255..3c41c02 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs @@ -885,7 +885,7 @@ namespace OpenSim.Region.Examples.SimpleModule { } - public void SendLandObjectOwners(Dictionary ownersAndCount) + public void SendLandObjectOwners(LandData land, Dictionary ownersAndCount) { } diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index aff26b6..9f8fbb3 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs @@ -892,7 +892,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC public void SendForceClientSelectObjects(List objectIDs) { } - public void SendLandObjectOwners(Dictionary ownersAndCount) + public void SendLandObjectOwners(LandData land, Dictionary ownersAndCount) { } public void SendLandParcelOverlay(byte[] data, int sequence_id) -- cgit v1.1