aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2008-12-22 13:03:30 +0000
committerMelanie Thielker2008-12-22 13:03:30 +0000
commita3b67ec8c7fc5ee061dad779c9842f28a781549a (patch)
tree07567a24f37a1ac5f0eb4c640222a8088169b873 /OpenSim/Region
parentDeleted the AssetDownload module (and directory), as this module/code hasn't ... (diff)
downloadopensim-SC_OLD-a3b67ec8c7fc5ee061dad779c9842f28a781549a.zip
opensim-SC_OLD-a3b67ec8c7fc5ee061dad779c9842f28a781549a.tar.gz
opensim-SC_OLD-a3b67ec8c7fc5ee061dad779c9842f28a781549a.tar.bz2
opensim-SC_OLD-a3b67ec8c7fc5ee061dad779c9842f28a781549a.tar.xz
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
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 1d7dcee..6c22338 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3644,10 +3644,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3644 { 3644 {
3645 3645
3646 partItemID = item.ItemID; 3646 partItemID = item.ItemID;
3647 linkNumber = m_host.LinkNum;
3648 if(m_host.ParentGroup.Children.Count == 1)
3649 linkNumber = 0;
3650
3647 3651
3648 object[] resobj = new object[] 3652 object[] resobj = new object[]
3649 { 3653 {
3650 new LSL_Integer(m_host.LinkNum), new LSL_Integer(num), new LSL_String(msg), new LSL_String(id) 3654 new LSL_Integer(linkNumber), new LSL_Integer(num), new LSL_String(msg), new LSL_String(id)
3651 }; 3655 };
3652 3656
3653 m_ScriptEngine.PostScriptEvent(partItemID, 3657 m_ScriptEngine.PostScriptEvent(partItemID,