mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
make sure land access/ban lists are active when changed by new viewers
This commit is contained in:
@@ -740,6 +740,17 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
newData.ParcelAccessList.Add(temp);
|
||||
}
|
||||
|
||||
// update use lists flags
|
||||
// rights already checked or we wont be here
|
||||
uint parcelflags = newData.Flags;
|
||||
|
||||
if((flags & (uint)AccessList.Access) != 0)
|
||||
parcelflags |= (uint)ParcelFlags.UseAccessList;
|
||||
if((flags & (uint)AccessList.Ban) != 0)
|
||||
parcelflags |= (uint)ParcelFlags.UseBanList;
|
||||
|
||||
newData.Flags = parcelflags;
|
||||
|
||||
m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user