*Access/Ban list now copies correctly to a new parcel after a subdivision occurs.

afrisby
mingchen 2007-12-16 20:34:08 +00:00
parent 0eec2ad030
commit bd6720b349
1 changed files with 10 additions and 0 deletions

View File

@ -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;