Fix "from" link number in single prims to 0. Previously, this was 1,

causing sime scripts that expected the first param of the link_message
to match llGetLinkNumber() to fail in single prims
0.6.2-post-fixes
Melanie Thielker 2008-12-22 13:03:30 +00:00
parent 69b72ac83c
commit a3b67ec8c7
1 changed files with 5 additions and 1 deletions

View File

@ -3644,10 +3644,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
partItemID = item.ItemID;
linkNumber = m_host.LinkNum;
if(m_host.ParentGroup.Children.Count == 1)
linkNumber = 0;
object[] resobj = new object[]
{
new LSL_Integer(m_host.LinkNum), new LSL_Integer(num), new LSL_String(msg), new LSL_String(id)
new LSL_Integer(linkNumber), new LSL_Integer(num), new LSL_String(msg), new LSL_String(id)
};
m_ScriptEngine.PostScriptEvent(partItemID,