From bd6720b34923e8eb8b8281c413e5f7bdae093ac7 Mon Sep 17 00:00:00 2001 From: mingchen Date: Sun, 16 Dec 2007 20:34:08 +0000 Subject: *Access/Ban list now copies correctly to a new parcel after a subdivision occurs. --- OpenSim/Region/Environment/LandManagement/Land.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/LandManagement/Land.cs b/OpenSim/Region/Environment/LandManagement/Land.cs index 791b3ea..45e8aac 100644 --- a/OpenSim/Region/Environment/LandManagement/Land.cs +++ b/OpenSim/Region/Environment/LandManagement/Land.cs @@ -93,6 +93,16 @@ namespace OpenSim.Region.Environment.LandManagement //Place all new variables here! newLand.landBitmap = (bool[,]) (landBitmap.Clone()); + newLand.parcelAccessList.Clear(); + foreach (ParcelManager.ParcelAccessEntry entry in parcelAccessList) + { + ParcelManager.ParcelAccessEntry newEntry = new ParcelManager.ParcelAccessEntry(); + newEntry.AgentID = entry.AgentID; + newEntry.Flags = entry.Flags; + newEntry.Time = entry.Time; + + newLand.parcelAccessList.Add(newEntry); + } newLand.landData = landData.Copy(); return newLand; -- cgit v1.1