aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Interfaces/ILandObject.cs2
-rw-r--r--OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs2
-rw-r--r--OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs5
-rw-r--r--OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs5
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs2
-rw-r--r--OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs2
-rw-r--r--OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs60
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandObject.cs28
-rw-r--r--OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs3
-rw-r--r--OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs44
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs2
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs4
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs2
15 files changed, 71 insertions, 98 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/ILandObject.cs b/OpenSim/Region/Environment/Interfaces/ILandObject.cs
index 96fa378..85da000 100644
--- a/OpenSim/Region/Environment/Interfaces/ILandObject.cs
+++ b/OpenSim/Region/Environment/Interfaces/ILandObject.cs
@@ -54,7 +54,7 @@ namespace OpenSim.Region.Environment.Interfaces
54 bool isBannedFromLand(UUID avatar); 54 bool isBannedFromLand(UUID avatar);
55 bool isRestrictedFromLand(UUID avatar); 55 bool isRestrictedFromLand(UUID avatar);
56 void sendLandUpdateToClient(IClientAPI remote_client); 56 void sendLandUpdateToClient(IClientAPI remote_client);
57 List<UUID> createAccessListArrayByFlag(ParcelManager.AccessList flag); 57 List<UUID> createAccessListArrayByFlag(AccessList flag);
58 void sendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client); 58 void sendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client);
59 void updateAccessList(uint flags, List<ParcelManager.ParcelAccessEntry> entries, IClientAPI remote_client); 59 void updateAccessList(uint flags, List<ParcelManager.ParcelAccessEntry> entries, IClientAPI remote_client);
60 void updateLandBitmapByteArray(); 60 void updateLandBitmapByteArray();
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
index 3b521c3..f907ecd 100644
--- a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
@@ -109,7 +109,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
109 /// <param name="transferRequest"></param> 109 /// <param name="transferRequest"></param>
110 public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest) 110 public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest)
111 { 111 {
112 UUID requestID = null; 112 UUID requestID = UUID.Zero;
113 byte source = 2; 113 byte source = 2;
114 if (transferRequest.TransferInfo.SourceType == 2) 114 if (transferRequest.TransferInfo.SourceType == 2)
115 { 115 {
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs
index 813d271..ed714ba 100644
--- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs
@@ -33,6 +33,7 @@ using Nini.Config;
33using OpenSim.Framework; 33using OpenSim.Framework;
34using OpenSim.Region.Environment.Interfaces; 34using OpenSim.Region.Environment.Interfaces;
35using OpenSim.Region.Environment.Scenes; 35using OpenSim.Region.Environment.Scenes;
36using BlockingQueue = OpenSim.Framework.BlockingQueue<OpenSim.Region.Environment.Interfaces.ITextureSender>;
36 37
37namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload 38namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
38{ 39{
@@ -44,8 +45,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
44 /// <summary> 45 /// <summary>
45 /// There is one queue for all textures waiting to be sent, regardless of the requesting user. 46 /// There is one queue for all textures waiting to be sent, regardless of the requesting user.
46 /// </summary> 47 /// </summary>
47 private readonly BlockingQueue<ITextureSender> m_queueSenders 48 private readonly OpenSim.Framework.BlockingQueue<ITextureSender> m_queueSenders
48 = new BlockingQueue<ITextureSender>(); 49 = new OpenSim.Framework.BlockingQueue<ITextureSender>();
49 50
50 /// <summary> 51 /// <summary>
51 /// Each user has their own texture download service. 52 /// Each user has their own texture download service.
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
index c38bc62..93f4d1b 100644
--- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
@@ -35,6 +35,7 @@ using OpenSim.Framework.Statistics;
35using OpenSim.Region.Environment.Interfaces; 35using OpenSim.Region.Environment.Interfaces;
36using OpenSim.Region.Environment.Scenes; 36using OpenSim.Region.Environment.Scenes;
37 37
38
38namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload 39namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
39{ 40{
40 /// <summary> 41 /// <summary>
@@ -75,7 +76,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
75 /// Texture Senders are placed in this queue once they have received their texture from the asset 76 /// Texture Senders are placed in this queue once they have received their texture from the asset
76 /// cache. Another module actually invokes the send. 77 /// cache. Another module actually invokes the send.
77 /// </summary> 78 /// </summary>
78 private readonly BlockingQueue<ITextureSender> m_sharedSendersQueue; 79 private readonly OpenSim.Framework.BlockingQueue<ITextureSender> m_sharedSendersQueue;
79 80
80 /// <summary> 81 /// <summary>
81 /// Holds texture senders before they have received the appropriate texture from the asset cache. 82 /// Holds texture senders before they have received the appropriate texture from the asset cache.
@@ -91,7 +92,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
91 = new RepeatLimitStrategy<UUID>(MAX_ALLOWED_TEXTURE_REQUESTS); 92 = new RepeatLimitStrategy<UUID>(MAX_ALLOWED_TEXTURE_REQUESTS);
92 93
93 public UserTextureDownloadService( 94 public UserTextureDownloadService(
94 IClientAPI client, Scene scene, BlockingQueue<ITextureSender> sharedQueue) 95 IClientAPI client, Scene scene, OpenSim.Framework.BlockingQueue<ITextureSender> sharedQueue)
95 { 96 {
96 m_client = client; 97 m_client = client;
97 m_scene = scene; 98 m_scene = scene;
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
index 8b7df9e..ea2fc04 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
@@ -298,7 +298,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
298 int funds = 0; 298 int funds = 0;
299 299
300 Hashtable hbinfo = 300 Hashtable hbinfo =
301 GetBalanceForUserFromMoneyServer(client.AgentId, client.SecureSessionId, s.RegionInfo.originRegionID.ToString(), 301 GetBalanceForUserFromMoneyServer(client.AgentId, client.SecureSessionId, s.RegionInfo.originRegionID,
302 s.RegionInfo.regionSecret); 302 s.RegionInfo.regionSecret);
303 if ((bool) hbinfo["success"] == true) 303 if ((bool) hbinfo["success"] == true)
304 { 304 {
@@ -722,7 +722,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
722 if (m_MoneyAddress.Length > 0) 722 if (m_MoneyAddress.Length > 0)
723 { 723 {
724 Hashtable hbinfo = 724 Hashtable hbinfo =
725 GetBalanceForUserFromMoneyServer(aClient.AgentId, aClient.SecureSessionId, s.RegionInfo.originRegionID.ToString(), 725 GetBalanceForUserFromMoneyServer(aClient.AgentId, aClient.SecureSessionId, s.RegionInfo.originRegionID,
726 s.RegionInfo.regionSecret); 726 s.RegionInfo.regionSecret);
727 if ((bool) hbinfo["success"] == true) 727 if ((bool) hbinfo["success"] == true)
728 { 728 {
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
index ad0cac0..053eeef 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
@@ -67,7 +67,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups
67 OpenSimulatorGroup.ActiveGroupTitle = "OpenSimulator Tester"; 67 OpenSimulatorGroup.ActiveGroupTitle = "OpenSimulator Tester";
68 OpenSimulatorGroup.GroupID = opensimulatorGroupID; 68 OpenSimulatorGroup.GroupID = opensimulatorGroupID;
69 OpenSimulatorGroup.groupName = "OpenSimulator Testing"; 69 OpenSimulatorGroup.groupName = "OpenSimulator Testing";
70 OpenSimulatorGroup.ActiveGroupPowers = GroupPowers.LandAllowSetHome; 70 OpenSimulatorGroup.ActiveGroupPowers = GroupPowers.AllowSetHome;
71 OpenSimulatorGroup.GroupTitles.Add("OpenSimulator Tester"); 71 OpenSimulatorGroup.GroupTitles.Add("OpenSimulator Tester");
72 if (!m_groupUUIDGroup.ContainsKey(opensimulatorGroupID)) 72 if (!m_groupUUIDGroup.ContainsKey(opensimulatorGroupID))
73 m_groupUUIDGroup.Add(opensimulatorGroupID, OpenSimulatorGroup); 73 m_groupUUIDGroup.Add(opensimulatorGroupID, OpenSimulatorGroup);
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
index eeff62d..cb525cc 100644
--- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
+++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
@@ -787,7 +787,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
787 UUID userUUID = UUID.Zero; 787 UUID userUUID = UUID.Zero;
788 if (UUID.TryParse(uuidString, out userUUID)) 788 if (UUID.TryParse(uuidString, out userUUID))
789 { 789 {
790 UUID RemoteID = uuidString; 790 UUID RemoteID = (UUID)uuidString;
791 UUID LocalID = RemoteID; 791 UUID LocalID = RemoteID;
792 // FIXME: TODO: Routine to map RemoteUUIDs to LocalUUIds 792 // FIXME: TODO: Routine to map RemoteUUIDs to LocalUUIds
793 // would be done already.. but the client connects with the Aditi UUID 793 // would be done already.. but the client connects with the Aditi UUID
diff --git a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
index bec1300..3dddc2b 100644
--- a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
@@ -732,40 +732,40 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
732 732
733 public uint GetRegionFlags() 733 public uint GetRegionFlags()
734 { 734 {
735 Simulator.RegionFlags flags = Simulator.RegionFlags.None; 735 RegionFlags flags = RegionFlags.None;
736 736
737 // Fully implemented 737 // Fully implemented
738 // 738 //
739 if (m_scene.RegionInfo.RegionSettings.AllowDamage) 739 if (m_scene.RegionInfo.RegionSettings.AllowDamage)
740 flags |= Simulator.RegionFlags.AllowDamage; 740 flags |= RegionFlags.AllowDamage;
741 if (m_scene.RegionInfo.RegionSettings.BlockTerraform) 741 if (m_scene.RegionInfo.RegionSettings.BlockTerraform)
742 flags |= Simulator.RegionFlags.BlockTerraform; 742 flags |= RegionFlags.BlockTerraform;
743 if (!m_scene.RegionInfo.RegionSettings.AllowLandResell) 743 if (!m_scene.RegionInfo.RegionSettings.AllowLandResell)
744 flags |= Simulator.RegionFlags.BlockLandResell; 744 flags |= RegionFlags.BlockLandResell;
745 if (m_scene.RegionInfo.RegionSettings.DisableCollisions) 745 if (m_scene.RegionInfo.RegionSettings.DisableCollisions)
746 flags |= Simulator.RegionFlags.SkipCollisions; 746 flags |= RegionFlags.SkipCollisions;
747 if (m_scene.RegionInfo.RegionSettings.DisableScripts) 747 if (m_scene.RegionInfo.RegionSettings.DisableScripts)
748 flags |= Simulator.RegionFlags.SkipScripts; 748 flags |= RegionFlags.SkipScripts;
749 if (m_scene.RegionInfo.RegionSettings.DisablePhysics) 749 if (m_scene.RegionInfo.RegionSettings.DisablePhysics)
750 flags |= Simulator.RegionFlags.SkipPhysics; 750 flags |= RegionFlags.SkipPhysics;
751 if (m_scene.RegionInfo.RegionSettings.BlockFly) 751 if (m_scene.RegionInfo.RegionSettings.BlockFly)
752 flags |= Simulator.RegionFlags.NoFly; 752 flags |= RegionFlags.NoFly;
753 if (m_scene.RegionInfo.RegionSettings.RestrictPushing) 753 if (m_scene.RegionInfo.RegionSettings.RestrictPushing)
754 flags |= Simulator.RegionFlags.RestrictPushObject; 754 flags |= RegionFlags.RestrictPushObject;
755 if (m_scene.RegionInfo.RegionSettings.AllowLandJoinDivide) 755 if (m_scene.RegionInfo.RegionSettings.AllowLandJoinDivide)
756 flags |= Simulator.RegionFlags.AllowParcelChanges; 756 flags |= RegionFlags.AllowParcelChanges;
757 if (m_scene.RegionInfo.RegionSettings.BlockShowInSearch) 757 if (m_scene.RegionInfo.RegionSettings.BlockShowInSearch)
758 flags |= (Simulator.RegionFlags)(1 << 29); 758 flags |= (RegionFlags)(1 << 29);
759 759
760 if (m_scene.RegionInfo.RegionSettings.FixedSun) 760 if (m_scene.RegionInfo.RegionSettings.FixedSun)
761 flags |= Simulator.RegionFlags.SunFixed; 761 flags |= RegionFlags.SunFixed;
762 if (m_scene.RegionInfo.RegionSettings.Sandbox) 762 if (m_scene.RegionInfo.RegionSettings.Sandbox)
763 flags |= Simulator.RegionFlags.Sandbox; 763 flags |= RegionFlags.Sandbox;
764 764
765 // Fudge these to always on, so the menu options activate 765 // Fudge these to always on, so the menu options activate
766 // 766 //
767 flags |= Simulator.RegionFlags.AllowLandmark; 767 flags |= RegionFlags.AllowLandmark;
768 flags |= Simulator.RegionFlags.AllowSetHome; 768 flags |= RegionFlags.AllowSetHome;
769 769
770 // TODO: SkipUpdateInterestList 770 // TODO: SkipUpdateInterestList
771 771
@@ -779,35 +779,35 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
779 779
780 public uint GetEstateFlags() 780 public uint GetEstateFlags()
781 { 781 {
782 Simulator.RegionFlags flags = Simulator.RegionFlags.None; 782 RegionFlags flags = RegionFlags.None;
783 783
784 if (m_scene.RegionInfo.EstateSettings.FixedSun) 784 if (m_scene.RegionInfo.EstateSettings.FixedSun)
785 flags |= Simulator.RegionFlags.SunFixed; 785 flags |= RegionFlags.SunFixed;
786 if (m_scene.RegionInfo.EstateSettings.PublicAccess) 786 if (m_scene.RegionInfo.EstateSettings.PublicAccess)
787 flags |= (Simulator.RegionFlags.PublicAllowed | 787 flags |= (RegionFlags.PublicAllowed |
788 Simulator.RegionFlags.ExternallyVisible); 788 RegionFlags.ExternallyVisible);
789 if (m_scene.RegionInfo.EstateSettings.AllowVoice) 789 if (m_scene.RegionInfo.EstateSettings.AllowVoice)
790 flags |= Simulator.RegionFlags.AllowVoice; 790 flags |= RegionFlags.AllowVoice;
791 if (m_scene.RegionInfo.EstateSettings.AllowDirectTeleport) 791 if (m_scene.RegionInfo.EstateSettings.AllowDirectTeleport)
792 flags |= Simulator.RegionFlags.AllowDirectTeleport; 792 flags |= RegionFlags.AllowDirectTeleport;
793 if (m_scene.RegionInfo.EstateSettings.DenyAnonymous) 793 if (m_scene.RegionInfo.EstateSettings.DenyAnonymous)
794 flags |= Simulator.RegionFlags.DenyAnonymous; 794 flags |= RegionFlags.DenyAnonymous;
795 if (m_scene.RegionInfo.EstateSettings.DenyIdentified) 795 if (m_scene.RegionInfo.EstateSettings.DenyIdentified)
796 flags |= Simulator.RegionFlags.DenyIdentified; 796 flags |= RegionFlags.DenyIdentified;
797 if (m_scene.RegionInfo.EstateSettings.DenyTransacted) 797 if (m_scene.RegionInfo.EstateSettings.DenyTransacted)
798 flags |= Simulator.RegionFlags.DenyTransacted; 798 flags |= RegionFlags.DenyTransacted;
799 if (m_scene.RegionInfo.EstateSettings.AbuseEmailToEstateOwner) 799 if (m_scene.RegionInfo.EstateSettings.AbuseEmailToEstateOwner)
800 flags |= Simulator.RegionFlags.AbuseEmailToEstateOwner; 800 flags |= RegionFlags.AbuseEmailToEstateOwner;
801 if (m_scene.RegionInfo.EstateSettings.BlockDwell) 801 if (m_scene.RegionInfo.EstateSettings.BlockDwell)
802 flags |= Simulator.RegionFlags.BlockDwell; 802 flags |= RegionFlags.BlockDwell;
803 if (m_scene.RegionInfo.EstateSettings.EstateSkipScripts) 803 if (m_scene.RegionInfo.EstateSettings.EstateSkipScripts)
804 flags |= Simulator.RegionFlags.EstateSkipScripts; 804 flags |= RegionFlags.EstateSkipScripts;
805 if (m_scene.RegionInfo.EstateSettings.ResetHomeOnTeleport) 805 if (m_scene.RegionInfo.EstateSettings.ResetHomeOnTeleport)
806 flags |= Simulator.RegionFlags.ResetHomeOnTeleport; 806 flags |= RegionFlags.ResetHomeOnTeleport;
807 if (m_scene.RegionInfo.EstateSettings.TaxFree) 807 if (m_scene.RegionInfo.EstateSettings.TaxFree)
808 flags |= Simulator.RegionFlags.TaxFree; 808 flags |= RegionFlags.TaxFree;
809 if (m_scene.RegionInfo.EstateSettings.DenyMinors) 809 if (m_scene.RegionInfo.EstateSettings.DenyMinors)
810 flags |= (Simulator.RegionFlags)(1 << 30); 810 flags |= (RegionFlags)(1 << 30);
811 811
812 return (uint)flags; 812 return (uint)flags;
813 } 813 }
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
index bf51edb..6ab5a57 100644
--- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
@@ -263,12 +263,12 @@ namespace OpenSim.Region.Environment.Modules.World.Land
263 { 263 {
264 if (checkBan.isBannedFromLand(avatar.AgentId)) 264 if (checkBan.isBannedFromLand(avatar.AgentId))
265 { 265 {
266 checkBan.sendLandProperties(-30000, false, (int)ParcelManager.ParcelResult.Single, avatar); 266 checkBan.sendLandProperties(-30000, false, (int)ParcelResult.Single, avatar);
267 return; //Only send one 267 return; //Only send one
268 } 268 }
269 if (checkBan.isRestrictedFromLand(avatar.AgentId)) 269 if (checkBan.isRestrictedFromLand(avatar.AgentId))
270 { 270 {
271 checkBan.sendLandProperties(-40000, false, (int)ParcelManager.ParcelResult.Single, avatar); 271 checkBan.sendLandProperties(-40000, false, (int)ParcelResult.Single, avatar);
272 return; //Only send one 272 return; //Only send one
273 } 273 }
274 } 274 }
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
index 640b665..89d7b69 100644
--- a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
+++ b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
@@ -162,16 +162,16 @@ namespace OpenSim.Region.Environment.Modules.World.Land
162 public void sendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client) 162 public void sendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client)
163 { 163 {
164 IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); 164 IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>();
165 uint regionFlags = 336723974 & ~((uint)(Simulator.RegionFlags.AllowLandmark | Simulator.RegionFlags.AllowSetHome)); 165 uint regionFlags = 336723974 & ~((uint)(RegionFlags.AllowLandmark | RegionFlags.AllowSetHome));
166 if (estateModule != null) 166 if (estateModule != null)
167 regionFlags = estateModule.GetRegionFlags(); 167 regionFlags = estateModule.GetRegionFlags();
168 168
169 // In a perfect world, this would have worked. 169 // In a perfect world, this would have worked.
170 // 170 //
171// if ((landData.Flags & (uint)Parcel.ParcelFlags.AllowLandmark) != 0) 171// if ((landData.Flags & (uint)Parcel.ParcelFlags.AllowLandmark) != 0)
172// regionFlags |= (uint)Simulator.RegionFlags.AllowLandmark; 172// regionFlags |= (uint)RegionFlags.AllowLandmark;
173// if (landData.OwnerID == remote_client.AgentId) 173// if (landData.OwnerID == remote_client.AgentId)
174// regionFlags |= (uint)Simulator.RegionFlags.AllowSetHome; 174// regionFlags |= (uint)RegionFlags.AllowSetHome;
175 remote_client.SendLandProperties(remote_client, sequence_id, 175 remote_client.SendLandProperties(remote_client, sequence_id,
176 snap_selection, request_result, landData, 176 snap_selection, request_result, landData,
177 (float)m_scene.RegionInfo.RegionSettings.ObjectBonus, 177 (float)m_scene.RegionInfo.RegionSettings.ObjectBonus,
@@ -252,7 +252,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
252 { 252 {
253 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); 253 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry();
254 entry.AgentID = avatar; 254 entry.AgentID = avatar;
255 entry.Flags = ParcelManager.AccessList.Ban; 255 entry.Flags = AccessList.Ban;
256 entry.Time = new DateTime(); 256 entry.Time = new DateTime();
257 if (landData.ParcelAccessList.Contains(entry)) 257 if (landData.ParcelAccessList.Contains(entry))
258 { 258 {
@@ -269,7 +269,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
269 { 269 {
270 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); 270 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry();
271 entry.AgentID = avatar; 271 entry.AgentID = avatar;
272 entry.Flags = ParcelManager.AccessList.Access; 272 entry.Flags = AccessList.Access;
273 entry.Time = new DateTime(); 273 entry.Time = new DateTime();
274 if (!landData.ParcelAccessList.Contains(entry)) 274 if (!landData.ParcelAccessList.Contains(entry))
275 { 275 {
@@ -322,7 +322,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
322 322
323 #region AccessList Functions 323 #region AccessList Functions
324 324
325 public List<UUID> createAccessListArrayByFlag(ParcelManager.AccessList flag) 325 public List<UUID> createAccessListArrayByFlag(AccessList flag)
326 { 326 {
327 List<UUID> list = new List<UUID>(); 327 List<UUID> list = new List<UUID>();
328 foreach (ParcelManager.ParcelAccessEntry entry in landData.ParcelAccessList) 328 foreach (ParcelManager.ParcelAccessEntry entry in landData.ParcelAccessList)
@@ -344,16 +344,16 @@ namespace OpenSim.Region.Environment.Modules.World.Land
344 IClientAPI remote_client) 344 IClientAPI remote_client)
345 { 345 {
346 346
347 if (flags == (uint) ParcelManager.AccessList.Access || flags == (uint) ParcelManager.AccessList.Both) 347 if (flags == (uint) AccessList.Access || flags == (uint) AccessList.Both)
348 { 348 {
349 List<UUID> avatars = createAccessListArrayByFlag(ParcelManager.AccessList.Access); 349 List<UUID> avatars = createAccessListArrayByFlag(AccessList.Access);
350 remote_client.SendLandAccessListData(avatars,(uint) ParcelManager.AccessList.Access,landData.LocalID); 350 remote_client.SendLandAccessListData(avatars,(uint) AccessList.Access,landData.LocalID);
351 } 351 }
352 352
353 if (flags == (uint) ParcelManager.AccessList.Ban || flags == (uint) ParcelManager.AccessList.Both) 353 if (flags == (uint) AccessList.Ban || flags == (uint) AccessList.Both)
354 { 354 {
355 List<UUID> avatars = createAccessListArrayByFlag(ParcelManager.AccessList.Ban); 355 List<UUID> avatars = createAccessListArrayByFlag(AccessList.Ban);
356 remote_client.SendLandAccessListData(avatars, (uint)ParcelManager.AccessList.Ban, landData.LocalID); 356 remote_client.SendLandAccessListData(avatars, (uint)AccessList.Ban, landData.LocalID);
357 } 357 }
358 } 358 }
359 359
@@ -369,7 +369,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
369 List<ParcelManager.ParcelAccessEntry> toRemove = new List<ParcelManager.ParcelAccessEntry>(); 369 List<ParcelManager.ParcelAccessEntry> toRemove = new List<ParcelManager.ParcelAccessEntry>();
370 foreach (ParcelManager.ParcelAccessEntry entry in newData.ParcelAccessList) 370 foreach (ParcelManager.ParcelAccessEntry entry in newData.ParcelAccessList)
371 { 371 {
372 if (entry.Flags == (ParcelManager.AccessList) flags) 372 if (entry.Flags == (AccessList) flags)
373 { 373 {
374 toRemove.Add(entry); 374 toRemove.Add(entry);
375 } 375 }
@@ -384,7 +384,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
384 ParcelManager.ParcelAccessEntry temp = new ParcelManager.ParcelAccessEntry(); 384 ParcelManager.ParcelAccessEntry temp = new ParcelManager.ParcelAccessEntry();
385 temp.AgentID = entry.AgentID; 385 temp.AgentID = entry.AgentID;
386 temp.Time = new DateTime(); //Pointless? Yes. 386 temp.Time = new DateTime(); //Pointless? Yes.
387 temp.Flags = (ParcelManager.AccessList) flags; 387 temp.Flags = (AccessList) flags;
388 388
389 if (!newData.ParcelAccessList.Contains(temp)) 389 if (!newData.ParcelAccessList.Contains(temp))
390 { 390 {
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
index a8ed498..92214b9 100644
--- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
+++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
@@ -482,8 +482,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
482 { 482 {
483 } 483 }
484 484
485 public virtual void SendWindData(float[] map) { } 485 public virtual void SendWindData(Vector2[] windSpeeds) { }
486 public virtual void SendWindData(int p1x, int p1y, int p2x, int p2y, float[] map) { }
487 486
488 public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) 487 public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
489 { 488 {
diff --git a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs
index fced389..5495c1d 100644
--- a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs
@@ -45,7 +45,7 @@ namespace OpenSim.Region.Environment.Modules
45 private Random rndnums = new Random(System.Environment.TickCount); 45 private Random rndnums = new Random(System.Environment.TickCount);
46 private Scene m_scene = null; 46 private Scene m_scene = null;
47 private bool ready = false; 47 private bool ready = false;
48 private float[] windarr = new float[256*256]; 48 private Vector2[] windSpeeds = new Vector2[16 * 16];
49 49
50 private Dictionary<UUID, ulong> m_rootAgents = new Dictionary<UUID, ulong>(); 50 private Dictionary<UUID, ulong> m_rootAgents = new Dictionary<UUID, ulong>();
51 51
@@ -54,7 +54,6 @@ namespace OpenSim.Region.Environment.Modules
54 54
55 public void Initialise(Scene scene, IConfigSource config) 55 public void Initialise(Scene scene, IConfigSource config)
56 { 56 {
57
58 m_log.Debug("[WIND] Initializing"); 57 m_log.Debug("[WIND] Initializing");
59 58
60 m_scene = scene; 59 m_scene = scene;
@@ -120,15 +119,13 @@ namespace OpenSim.Region.Environment.Modules
120 119
121 public void WindToClient(IClientAPI client) 120 public void WindToClient(IClientAPI client)
122 { 121 {
123
124 if (ready) 122 if (ready)
125 { 123 {
126 //if (!sunFixed) 124 //if (!sunFixed)
127 //GenWindPos(); // Generate shared values once 125 //GenWindPos(); // Generate shared values once
128 client.SendWindData(windarr); 126 client.SendWindData(windSpeeds);
129 m_log.Debug("[WIND] Initial update for new client"); 127 m_log.Debug("[WIND] Initial update for new client");
130 } 128 }
131
132 } 129 }
133 130
134 public void WindUpdate() 131 public void WindUpdate()
@@ -149,11 +146,7 @@ namespace OpenSim.Region.Environment.Modules
149 { 146 {
150 if (!avatar.IsChildAgent) 147 if (!avatar.IsChildAgent)
151 { 148 {
152 149 avatar.ControllingClient.SendWindData(windSpeeds);
153 avatar.ControllingClient.SendWindData(
154 0,
155 0,0,1,
156 windarr);
157 } 150 }
158 } 151 }
159 152
@@ -169,7 +162,7 @@ namespace OpenSim.Region.Environment.Modules
169 foreach (ScenePresence avatar in avatars) 162 foreach (ScenePresence avatar in avatars)
170 { 163 {
171 if (!avatar.IsChildAgent) 164 if (!avatar.IsChildAgent)
172 avatar.ControllingClient.SendWindData(windarr); 165 avatar.ControllingClient.SendWindData(windSpeeds);
173 } 166 }
174 167
175 // set estate settings for region access to sun position 168 // set estate settings for region access to sun position
@@ -182,35 +175,14 @@ namespace OpenSim.Region.Environment.Modules
182 175
183 private void GenWindPos() 176 private void GenWindPos()
184 { 177 {
185 //windarr = new float[256*256]; 178 for (int y = 0; y < 16; y++)
186
187 Array.Clear(windarr, 0, 256 * 256);
188 //float i = 0f;
189 //float i2 = 2f;
190
191 for (int x = 0; x < 16; x++)
192 { 179 {
193 for (int y = 0; y < 16; y++) 180 for (int x = 0; x < 16; x++)
194 { 181 {
195 182 windSpeeds[y * 16 + x].X = (float)(rndnums.NextDouble() * 2d - 1d);
196 windarr[x * 256 + y] = (float)(rndnums.NextDouble() * 2d - 1d); 183 windSpeeds[y * 16 + x].Y = (float)(rndnums.NextDouble() * 2d - 1d);
197
198 } 184 }
199
200 } 185 }
201 for (int x = 16; x < 32; x++)
202 {
203 for (int y = 0; y < 16; y++)
204 {
205
206 windarr[x * 256 + y] = (float)(rndnums.NextDouble() * 2d - 1d);
207
208 }
209
210 }
211
212
213 // m_log.Debug("[SUN] Velocity("+Velocity.X+","+Velocity.Y+","+Velocity.Z+")");
214 } 186 }
215 187
216 private void ClientLoggedOut(UUID AgentId) 188 private void ClientLoggedOut(UUID AgentId)
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index 50122f5..1c421b7 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -1494,7 +1494,7 @@ namespace OpenSim.Region.Environment.Scenes
1494 protected internal void MakeObjectSearchable(IClientAPI remoteClient, bool IncludeInSearch, uint localID) 1494 protected internal void MakeObjectSearchable(IClientAPI remoteClient, bool IncludeInSearch, uint localID)
1495 { 1495 {
1496 UUID user = remoteClient.AgentId; 1496 UUID user = remoteClient.AgentId;
1497 UUID objid = null; 1497 UUID objid = UUID.Zero;
1498 SceneObjectPart obj = null; 1498 SceneObjectPart obj = null;
1499 1499
1500 List<EntityBase> EntityList = GetEntities(); 1500 List<EntityBase> EntityList = GetEntities();
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index 186e13e..560e17e 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -1371,7 +1371,7 @@ namespace OpenSim.Region.Environment.Scenes
1371 taskItem.Flags = itemBase.Flags; 1371 taskItem.Flags = itemBase.Flags;
1372 taskItem.PermsGranter = UUID.Zero; 1372 taskItem.PermsGranter = UUID.Zero;
1373 taskItem.PermsMask = 0; 1373 taskItem.PermsMask = 0;
1374 taskItem.AssetID = asset.ID; 1374 taskItem.AssetID = asset.FullID;
1375 1375
1376 part.AddInventoryItem(taskItem); 1376 part.AddInventoryItem(taskItem);
1377 part.GetProperties(remoteClient); 1377 part.GetProperties(remoteClient);
@@ -1616,7 +1616,7 @@ namespace OpenSim.Region.Environment.Scenes
1616 // FIXME: This needs to be fixed. 1616 // FIXME: This needs to be fixed.
1617 m_log.ErrorFormat( 1617 m_log.ErrorFormat(
1618 "[AGENT INVENTORY]: Queued deletion of scene object to agent {0} {1} failed: {2}", 1618 "[AGENT INVENTORY]: Queued deletion of scene object to agent {0} {1} failed: {2}",
1619 (x != null ? x.remoteClient.Name : "unavailable"), (x != null ? x.remoteClient.AgentId : "unavailable"), e.ToString()); 1619 (x != null ? x.remoteClient.Name : "unavailable"), (x != null ? x.remoteClient.AgentId.ToString() : "unavailable"), e.ToString());
1620 } 1620 }
1621 1621
1622 m_log.Info("No objects left in inventory delete queue."); 1622 m_log.Info("No objects left in inventory delete queue.");
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 08de087..f08f4a4 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -915,7 +915,7 @@ namespace OpenSim.Region.Environment.Scenes
915 { 915 {
916 return part.UUID; 916 return part.UUID;
917 } 917 }
918 return null; 918 return UUID.Zero;
919 } 919 }
920 920
921 public void ObjectGrabHandler(uint localId, Vector3 offsetPos, IClientAPI remoteClient) 921 public void ObjectGrabHandler(uint localId, Vector3 offsetPos, IClientAPI remoteClient)