From 03bd6c91a9e7e18c4f0d529e8cb63bd6d834d03c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 18 Jul 2008 11:51:27 +0000 Subject: * Fix http://opensimulator.org/mantis/view.php?id=1761 * Now llGetLinkNumber() returns 0 if the prim is not linked, instead of 1 --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 2 +- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 3e5e12c..42c5abc 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -2569,7 +2569,7 @@ namespace OpenSim.Region.ScriptEngine.Common { m_host.AddScriptLPS(1); - if (m_host.ParentGroup.Children.Count > 0) + if (m_host.ParentGroup.Children.Count > 1) { return m_host.LinkNum + 1; } diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 7f24f0e..e396bb4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -2457,7 +2457,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { m_host.AddScriptLPS(1); - if (m_host.ParentGroup.Children.Count > 0) + if (m_host.ParentGroup.Children.Count > 1) { return m_host.LinkNum + 1; } -- cgit v1.1