From 07c26111afa99280e18274817de8cd752474cad7 Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 9 Dec 2011 16:36:25 +0100 Subject: Fix llGetLinkKey to report avatars properly --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 7a56f11..fcb1278 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -4117,25 +4117,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public LSL_String llGetLinkKey(int linknum) { m_host.AddScriptLPS(1); - List keytable = new List(); - // parse for sitting avatare-uuids - World.ForEachRootScenePresence(delegate(ScenePresence presence) - { - if (presence.ParentID != 0 && m_host.ParentGroup.HasChildPrim(presence.ParentID)) - keytable.Add(presence.UUID); - }); - - int totalprims = m_host.ParentGroup.PrimCount + keytable.Count; - if (linknum > m_host.ParentGroup.PrimCount && linknum <= totalprims) - { - return keytable[totalprims - linknum].ToString(); - } - - if (linknum == 1 && m_host.ParentGroup.PrimCount == 1 && keytable.Count == 1) - { - return m_host.UUID.ToString(); - } - SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknum); if (part != null) { -- cgit v1.1