aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-05-14 06:27:29 +0100
committerUbitUmarov2017-05-14 06:27:29 +0100
commit156707edfb88b9ddf679751f8f6d8128b2abd7be (patch)
tree3e5a4f79fa453999edc9e5a680624041067034e4 /OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
parent don't round to nearest int (diff)
downloadopensim-SC_OLD-156707edfb88b9ddf679751f8f6d8128b2abd7be.zip
opensim-SC_OLD-156707edfb88b9ddf679751f8f6d8128b2abd7be.tar.gz
opensim-SC_OLD-156707edfb88b9ddf679751f8f6d8128b2abd7be.tar.bz2
opensim-SC_OLD-156707edfb88b9ddf679751f8f6d8128b2abd7be.tar.xz
clear land object on delete
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 6f32a77..057e204 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -274,6 +274,9 @@ namespace OpenSim.Region.CoreModules.World.Land
274 //Remove all the land objects in the sim and add a blank, full sim land object set to public 274 //Remove all the land objects in the sim and add a blank, full sim land object set to public
275 lock (m_landList) 275 lock (m_landList)
276 { 276 {
277 foreach(ILandObject parcel in m_landList.Values)
278 parcel.Clear();
279
277 m_landList.Clear(); 280 m_landList.Clear();
278 m_landUUIDList.Clear(); 281 m_landUUIDList.Clear();
279 m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1; 282 m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1;
@@ -696,6 +699,7 @@ namespace OpenSim.Region.CoreModules.World.Land
696 m_landList.Remove(local_id); 699 m_landList.Remove(local_id);
697 if(land.LandData != null) 700 if(land.LandData != null)
698 m_landUUIDList.Remove(land.LandData.GlobalID); 701 m_landUUIDList.Remove(land.LandData.GlobalID);
702 land.Clear();
699 } 703 }
700 704
701 m_scene.EventManager.TriggerLandObjectRemoved(land.LandData.GlobalID); 705 m_scene.EventManager.TriggerLandObjectRemoved(land.LandData.GlobalID);
@@ -746,7 +750,7 @@ namespace OpenSim.Region.CoreModules.World.Land
746 } 750 }
747 } 751 }
748 } 752 }
749 753 master.LandData.Dwell += slave.LandData.Dwell;
750 removeLandObject(slave.LandData.LocalID); 754 removeLandObject(slave.LandData.LocalID);
751 UpdateLandObject(master.LandData.LocalID, master.LandData); 755 UpdateLandObject(master.LandData.LocalID, master.LandData);
752 } 756 }