fix land access/ban list sending for new viewers

LSLKeyTest
UbitUmarov 2015-12-12 13:05:24 +00:00
parent 0934e1cf71
commit 3781c486c6
1 changed files with 2 additions and 2 deletions

View File

@ -679,13 +679,13 @@ namespace OpenSim.Region.CoreModules.World.Land
IClientAPI remote_client)
{
if (flags == (uint) AccessList.Access || flags == (uint) AccessList.Both)
if ((flags & (uint) AccessList.Access) != 0)
{
List<LandAccessEntry> accessEntries = CreateAccessListArrayByFlag(AccessList.Access);
remote_client.SendLandAccessListData(accessEntries,(uint) AccessList.Access,LandData.LocalID);
}
if (flags == (uint) AccessList.Ban || flags == (uint) AccessList.Both)
if ((flags & (uint) AccessList.Ban) != 0)
{
List<LandAccessEntry> accessEntries = CreateAccessListArrayByFlag(AccessList.Ban);
remote_client.SendLandAccessListData(accessEntries, (uint)AccessList.Ban, LandData.LocalID);