diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index b6fb5a4..1417efb 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1650,16 +1650,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1650 | ScenePresence avatar = m_scene.GetScenePresence(rootpart.AttachedAvatar); | 1650 | ScenePresence avatar = m_scene.GetScenePresence(rootpart.AttachedAvatar); |
1651 | if (avatar != null) | 1651 | if (avatar != null) |
1652 | { | 1652 | { |
1653 | List<string> coords = new List<string>(); | 1653 | avatar.DoMoveToPosition(0, target, null); |
1654 | uint regionX = 0; | ||
1655 | uint regionY = 0; | ||
1656 | Utils.LongToUInts(Scene.RegionInfo.RegionHandle, out regionX, out regionY); | ||
1657 | target.X += regionX; | ||
1658 | target.Y += regionY; | ||
1659 | coords.Add(target.X.ToString()); | ||
1660 | coords.Add(target.Y.ToString()); | ||
1661 | coords.Add(target.Z.ToString()); | ||
1662 | avatar.DoMoveToPosition(avatar, "", coords); | ||
1663 | } | 1654 | } |
1664 | } | 1655 | } |
1665 | else | 1656 | else |