aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index e8d0bea..e8bf5cf 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3804,6 +3804,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3804 public LSL_String llGetLinkName(int linknum) 3804 public LSL_String llGetLinkName(int linknum)
3805 { 3805 {
3806 m_host.AddScriptLPS(1); 3806 m_host.AddScriptLPS(1);
3807 // simplest case, this prims link number
3808 if (linknum == m_host.LinkNum || linknum == ScriptBaseClass.LINK_THIS)
3809 return m_host.Name;
3810
3807 // parse for sitting avatare-names 3811 // parse for sitting avatare-names
3808 List<String> nametable = new List<String>(); 3812 List<String> nametable = new List<String>();
3809 World.ForEachRootScenePresence(delegate(ScenePresence presence) 3813 World.ForEachRootScenePresence(delegate(ScenePresence presence)
@@ -3827,10 +3831,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3827 return nametable[totalprims - linknum]; 3831 return nametable[totalprims - linknum];
3828 } 3832 }
3829 3833
3830 // simplest case, this prims link number
3831 if (linknum == m_host.LinkNum || linknum == ScriptBaseClass.LINK_THIS)
3832 return m_host.Name;
3833
3834 // Single prim 3834 // Single prim
3835 if (m_host.LinkNum == 0) 3835 if (m_host.LinkNum == 0)
3836 { 3836 {