diff options
author | Melanie | 2010-03-03 02:07:03 +0000 |
---|---|---|
committer | Melanie | 2010-03-03 02:07:03 +0000 |
commit | 028a87fe37002e7a0611f66babf1deee46c83804 (patch) | |
tree | 387aec499fd60c2012bed8148e6a2ddc847c3d95 /OpenSim/Region/CoreModules/World/Estate | |
parent | Revert "test" (diff) | |
parent | Fixes Region.Framework tests. Although these tests don't fail, they need to b... (diff) | |
download | opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.zip opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.gz opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.bz2 opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.xz |
Merge branch 'master' into careminster-presence-refactor
This brings careminster on the level of master. To be tested
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Estate')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 33 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs | 2 |
2 files changed, 7 insertions, 28 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 03da269..e3bab2d 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -57,10 +57,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
57 | if (!m_scene.RegionInfo.EstateSettings.UseGlobalTime) | 57 | if (!m_scene.RegionInfo.EstateSettings.UseGlobalTime) |
58 | sun=(uint)(m_scene.RegionInfo.EstateSettings.SunPosition*1024.0) + 0x1800; | 58 | sun=(uint)(m_scene.RegionInfo.EstateSettings.SunPosition*1024.0) + 0x1800; |
59 | UUID estateOwner; | 59 | UUID estateOwner; |
60 | if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) | 60 | estateOwner = m_scene.RegionInfo.EstateSettings.EstateOwner; |
61 | estateOwner = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
62 | else | ||
63 | estateOwner = m_scene.RegionInfo.MasterAvatarAssignedUUID; | ||
64 | 61 | ||
65 | if (m_scene.Permissions.IsGod(remote_client.AgentId)) | 62 | if (m_scene.Permissions.IsGod(remote_client.AgentId)) |
66 | estateOwner = remote_client.AgentId; | 63 | estateOwner = remote_client.AgentId; |
@@ -241,8 +238,6 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
241 | 238 | ||
242 | if (user == m_scene.RegionInfo.EstateSettings.EstateOwner) | 239 | if (user == m_scene.RegionInfo.EstateSettings.EstateOwner) |
243 | return; // never process EO | 240 | return; // never process EO |
244 | if (user == m_scene.RegionInfo.MasterAvatarAssignedUUID) | ||
245 | return; // never process owner | ||
246 | 241 | ||
247 | if ((estateAccessType & 4) != 0) // User add | 242 | if ((estateAccessType & 4) != 0) // User add |
248 | { | 243 | { |
@@ -709,16 +704,9 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
709 | lsri.TaskID = sog.UUID; | 704 | lsri.TaskID = sog.UUID; |
710 | lsri.TaskLocalID = sog.LocalId; | 705 | lsri.TaskLocalID = sog.LocalId; |
711 | lsri.TaskName = sog.GetPartName(obj); | 706 | lsri.TaskName = sog.GetPartName(obj); |
712 | if (m_scene.CommsManager.UUIDNameCachedTest(sog.OwnerID)) | 707 | lsri.OwnerName = "waiting"; |
713 | { | 708 | lock (uuidNameLookupList) |
714 | lsri.OwnerName = m_scene.CommsManager.UUIDNameRequestString(sog.OwnerID); | 709 | uuidNameLookupList.Add(sog.OwnerID); |
715 | } | ||
716 | else | ||
717 | { | ||
718 | lsri.OwnerName = "waiting"; | ||
719 | lock (uuidNameLookupList) | ||
720 | uuidNameLookupList.Add(sog.OwnerID); | ||
721 | } | ||
722 | 710 | ||
723 | if (filter.Length != 0) | 711 | if (filter.Length != 0) |
724 | { | 712 | { |
@@ -769,7 +757,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
769 | for (int i = 0; i < uuidarr.Length; i++) | 757 | for (int i = 0; i < uuidarr.Length; i++) |
770 | { | 758 | { |
771 | // string lookupname = m_scene.CommsManager.UUIDNameRequestString(uuidarr[i]); | 759 | // string lookupname = m_scene.CommsManager.UUIDNameRequestString(uuidarr[i]); |
772 | m_scene.CommsManager.UUIDNameRequestString(uuidarr[i]); | 760 | m_scene.GetUserName(uuidarr[i]); |
773 | // we drop it. It gets cached though... so we're ready for the next request. | 761 | // we drop it. It gets cached though... so we're ready for the next request. |
774 | } | 762 | } |
775 | } | 763 | } |
@@ -808,14 +796,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
808 | args.waterHeight = (float)m_scene.RegionInfo.RegionSettings.WaterHeight; | 796 | args.waterHeight = (float)m_scene.RegionInfo.RegionSettings.WaterHeight; |
809 | args.regionFlags = GetRegionFlags(); | 797 | args.regionFlags = GetRegionFlags(); |
810 | args.regionName = m_scene.RegionInfo.RegionName; | 798 | args.regionName = m_scene.RegionInfo.RegionName; |
811 | if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) | 799 | args.SimOwner = m_scene.RegionInfo.EstateSettings.EstateOwner; |
812 | args.SimOwner = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
813 | else | ||
814 | args.SimOwner = m_scene.RegionInfo.MasterAvatarAssignedUUID; | ||
815 | |||
816 | // Fudge estate owner | ||
817 | //if (m_scene.Permissions.IsGod(remoteClient.AgentId)) | ||
818 | // args.SimOwner = remoteClient.AgentId; | ||
819 | 800 | ||
820 | args.terrainBase0 = UUID.Zero; | 801 | args.terrainBase0 = UUID.Zero; |
821 | args.terrainBase1 = UUID.Zero; | 802 | args.terrainBase1 = UUID.Zero; |
@@ -1194,8 +1175,6 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
1194 | 1175 | ||
1195 | public bool IsManager(UUID avatarID) | 1176 | public bool IsManager(UUID avatarID) |
1196 | { | 1177 | { |
1197 | if (avatarID == m_scene.RegionInfo.MasterAvatarAssignedUUID) | ||
1198 | return true; | ||
1199 | if (avatarID == m_scene.RegionInfo.EstateSettings.EstateOwner) | 1178 | if (avatarID == m_scene.RegionInfo.EstateSettings.EstateOwner) |
1200 | return true; | 1179 | return true; |
1201 | 1180 | ||
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs b/OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs index 2ff635b..b8d8b10 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs | |||
@@ -52,7 +52,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
52 | 52 | ||
53 | public EstateTerrainXferHandler(IClientAPI pRemoteClient, string pClientFilename) | 53 | public EstateTerrainXferHandler(IClientAPI pRemoteClient, string pClientFilename) |
54 | { | 54 | { |
55 | m_asset = new AssetBase(UUID.Zero, pClientFilename, type); | 55 | m_asset = new AssetBase(UUID.Zero, pClientFilename, type, pRemoteClient.AgentId.ToString()); |
56 | m_asset.Data = new byte[0]; | 56 | m_asset.Data = new byte[0]; |
57 | m_asset.Description = "empty"; | 57 | m_asset.Description = "empty"; |
58 | m_asset.Local = true; | 58 | m_asset.Local = true; |