aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/LandObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandObject.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index ccb85f6..b534a2b 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -269,6 +269,7 @@ namespace OpenSim.Region.CoreModules.World.Land
269 { 269 {
270 LandData = landData.Copy(); 270 LandData = landData.Copy();
271 m_scene = scene; 271 m_scene = scene;
272 m_scene.EventManager.OnFrame += OnFrame;
272 m_dwellModule = m_scene.RequestModuleInterface<IDwellModule>(); 273 m_dwellModule = m_scene.RequestModuleInterface<IDwellModule>();
273 } 274 }
274 275
@@ -296,9 +297,20 @@ namespace OpenSim.Region.CoreModules.World.Land
296 297
297 LandData.IsGroupOwned = is_group_owned; 298 LandData.IsGroupOwned = is_group_owned;
298 299
300 if(m_dwellModule == null)
301 LandData.Dwell = 0;
302
299 m_scene.EventManager.OnFrame += OnFrame; 303 m_scene.EventManager.OnFrame += OnFrame;
300 } 304 }
301 305
306 public void Clear()
307 {
308 if(m_scene != null)
309 m_scene.EventManager.OnFrame -= OnFrame;
310 LandData = null;
311 }
312
313
302 #endregion 314 #endregion
303 315
304 #region Member Functions 316 #region Member Functions