diff options
author | UbitUmarov | 2014-08-02 18:32:28 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-02 18:32:28 +0100 |
commit | 74447d14cda441408419bc90828975cf4b751692 (patch) | |
tree | 5951b8f168cfbd3ff8591dfd909178ba3b98511c /OpenSim/Region/CoreModules | |
parent | crossing into a hide parcel may work now. Not nice fix.. need get back to (diff) | |
download | opensim-SC-74447d14cda441408419bc90828975cf4b751692.zip opensim-SC-74447d14cda441408419bc90828975cf4b751692.tar.gz opensim-SC-74447d14cda441408419bc90828975cf4b751692.tar.bz2 opensim-SC-74447d14cda441408419bc90828975cf4b751692.tar.xz |
add some filters for NPCs
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 3016bbe..d8e3082 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -1047,6 +1047,10 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
1047 | /// <param name="remote_client">The object representing the client</param> | 1047 | /// <param name="remote_client">The object representing the client</param> |
1048 | public void SendParcelOverlay(IClientAPI remote_client) | 1048 | public void SendParcelOverlay(IClientAPI remote_client) |
1049 | { | 1049 | { |
1050 | |||
1051 | if (remote_client.SceneAgent.PresenceType == PresenceType.Npc) | ||
1052 | return; | ||
1053 | |||
1050 | const int LAND_BLOCKS_PER_PACKET = 1024; | 1054 | const int LAND_BLOCKS_PER_PACKET = 1024; |
1051 | 1055 | ||
1052 | byte[] byteArray = new byte[LAND_BLOCKS_PER_PACKET]; | 1056 | byte[] byteArray = new byte[LAND_BLOCKS_PER_PACKET]; |
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 7de6365..29c2234 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -244,6 +244,9 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
244 | 244 | ||
245 | public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client) | 245 | public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client) |
246 | { | 246 | { |
247 | if (remote_client.SceneAgent.PresenceType == PresenceType.Npc) | ||
248 | return; | ||
249 | |||
247 | IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); | 250 | IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); |
248 | uint regionFlags = 336723974 & ~((uint)(RegionFlags.AllowLandmark | RegionFlags.AllowSetHome)); | 251 | uint regionFlags = 336723974 & ~((uint)(RegionFlags.AllowLandmark | RegionFlags.AllowSetHome)); |
249 | if (estateModule != null) | 252 | if (estateModule != null) |