diff options
author | Melanie | 2011-01-27 06:57:54 +0100 |
---|---|---|
committer | Melanie | 2011-01-27 06:57:54 +0100 |
commit | 8568c6a7c038a8f49b926d44ca5324c741c80c98 (patch) | |
tree | dea46bd66ee57d198a540fe323d31a1144eae197 | |
parent | Make landing points work on local teleports. Constrain owners and gods to (diff) | |
download | opensim-SC_OLD-8568c6a7c038a8f49b926d44ca5324c741c80c98.zip opensim-SC_OLD-8568c6a7c038a8f49b926d44ca5324c741c80c98.tar.gz opensim-SC_OLD-8568c6a7c038a8f49b926d44ca5324c741c80c98.tar.bz2 opensim-SC_OLD-8568c6a7c038a8f49b926d44ca5324c741c80c98.tar.xz |
Implement "Cannot teleport closer to destination" message
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 |
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 | } |