mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Now llGetLinkNumber() returns 0 if the prim is not linked, instead of 1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user