aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
diff options
context:
space:
mode:
authorMelanie2012-10-21 21:12:34 +0100
committerMelanie2012-10-21 21:12:34 +0100
commitefae7c6fc27cc43134c531df9cb9b42e210fad5e (patch)
tree9064e71c7b396e1eeee07127ee31590427821442 /OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
parentSQLite DB: some values of land data will be not saved / loaded (diff)
downloadopensim-SC_OLD-efae7c6fc27cc43134c531df9cb9b42e210fad5e.zip
opensim-SC_OLD-efae7c6fc27cc43134c531df9cb9b42e210fad5e.tar.gz
opensim-SC_OLD-efae7c6fc27cc43134c531df9cb9b42e210fad5e.tar.bz2
opensim-SC_OLD-efae7c6fc27cc43134c531df9cb9b42e210fad5e.tar.xz
Refactor: Move Dwell reply to a module that can be disabled. The prior,
hardcoded approach disabled the use of non-core dwell tracking modules.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs12
1 files changed, 0 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 1f8e823..e935462 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -207,7 +207,6 @@ namespace OpenSim.Region.CoreModules.World.Land
207 client.OnParcelInfoRequest += ClientOnParcelInfoRequest; 207 client.OnParcelInfoRequest += ClientOnParcelInfoRequest;
208 client.OnParcelDeedToGroup += ClientOnParcelDeedToGroup; 208 client.OnParcelDeedToGroup += ClientOnParcelDeedToGroup;
209 client.OnPreAgentUpdate += ClientOnPreAgentUpdate; 209 client.OnPreAgentUpdate += ClientOnPreAgentUpdate;
210 client.OnParcelDwellRequest += ClientOnParcelDwellRequest;
211 210
212 EntityBase presenceEntity; 211 EntityBase presenceEntity;
213 if (m_scene.Entities.TryGetValue(client.AgentId, out presenceEntity) && presenceEntity is ScenePresence) 212 if (m_scene.Entities.TryGetValue(client.AgentId, out presenceEntity) && presenceEntity is ScenePresence)
@@ -799,17 +798,6 @@ namespace OpenSim.Region.CoreModules.World.Land
799 } 798 }
800 } 799 }
801 800
802 private void ClientOnParcelDwellRequest(int localID, IClientAPI client)
803 {
804 ILandObject parcel = null;
805 lock (m_landList)
806 {
807 if (!m_landList.TryGetValue(localID, out parcel))
808 return;
809 }
810 client.SendParcelDwellReply(localID, parcel.LandData.GlobalID, parcel.LandData.Dwell);
811 }
812
813 #endregion 801 #endregion
814 802
815 #region Parcel Modification 803 #region Parcel Modification