From bd16dddce5a23e67d9ead896f770a50168e46ef4 Mon Sep 17 00:00:00 2001 From: mingchen Date: Wed, 19 Dec 2007 04:28:54 +0000 Subject: *Added Ban Lines around parcels for banned avatars, but there is no actual blocking done yet. *Made the OnSignificantClientMovement distance from .02 to .45 to make it easier on the server. --- OpenSim/Region/Environment/LandManagement/Land.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Region/Environment/LandManagement/Land.cs') diff --git a/OpenSim/Region/Environment/LandManagement/Land.cs b/OpenSim/Region/Environment/LandManagement/Land.cs index 3f60b1b..4cfb0c1 100644 --- a/OpenSim/Region/Environment/LandManagement/Land.cs +++ b/OpenSim/Region/Environment/LandManagement/Land.cs @@ -227,6 +227,18 @@ namespace OpenSim.Region.Environment.LandManagement } } + public bool isBannedFromLand(ParcelManager.ParcelAccessEntry entry, IClientAPI remote_client) + { + if ((this.landData.landFlags & (uint)Parcel.ParcelFlags.UseBanList) > 0) + { + if (this.landData.parcelAccessList.Contains(entry)) + { + //They are banned, so lets send them a notice about this parcel + return true; + } + } + return false; + } public void sendLandUpdateToClient(IClientAPI remote_client) { sendLandProperties(0, false, 0, remote_client); -- cgit v1.1