From 3760d10cd071283be243d35e2a9e37d52ef23dd5 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sat, 11 Jan 2014 21:59:22 -0800 Subject: varregion: remove unnecessary border checking code in ScenePresence. --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index b52f48c..d2c7c76 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -1076,6 +1076,10 @@ namespace OpenSim.Region.Framework.Scenes // before the inventory is processed in MakeRootAgent. This fixes a race condition // related to the handling of attachments //m_scene.GetAvatarAppearance(ControllingClient, out Appearance); + + /* RA 20140111: Commented out these TestBorderCross's. + * Not sure why this code is here. It is not checking all the borders + * and 'in region' sanity checking is done in CheckAndAdjustLandingPoint and below. if (m_scene.TestBorderCross(pos, Cardinals.E)) { Border crossedBorder = m_scene.GetCrossedBorder(pos, Cardinals.E); @@ -1087,6 +1091,7 @@ namespace OpenSim.Region.Framework.Scenes Border crossedBorder = m_scene.GetCrossedBorder(pos, Cardinals.N); pos.Y = crossedBorder.BorderLine.Z - 1; } + */ CheckAndAdjustLandingPoint(ref pos); @@ -4667,6 +4672,7 @@ namespace OpenSim.Region.Framework.Scenes } } + // Modify landing point based on possible banning, telehubs or parcel restrictions. private void CheckAndAdjustLandingPoint(ref Vector3 pos) { string reason; -- cgit v1.1