aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 7445f57..5810824 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -4433,7 +4433,11 @@ if (m_animator.m_jumping) force.Z = m_animator.m_jumpVelocity; // add for ju
4433 (!m_scene.Permissions.IsGod(m_uuid)) && 4433 (!m_scene.Permissions.IsGod(m_uuid)) &&
4434 (!m_scene.RegionInfo.EstateSettings.IsEstateManager(m_uuid))) 4434 (!m_scene.RegionInfo.EstateSettings.IsEstateManager(m_uuid)))
4435 { 4435 {
4436 pos = land.LandData.UserLocation; 4436 float curr = Vector3.Distance(AbsolutePosition, pos);
4437 if (Vector3.Distance(land.LandData.UserLocation, pos) < curr)
4438 pos = land.LandData.UserLocation;
4439 else
4440 ControllingClient.SendAlertMessage("Can't teleport closer to destination");
4437 } 4441 }
4438 } 4442 }
4439 } 4443 }