make sure land access/ban lists are active when changed by new viewers

LSLKeyTest
UbitUmarov 2015-12-12 15:40:09 +00:00
parent 3781c486c6
commit 4d493dd32e
1 changed files with 11 additions and 0 deletions

View File

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