aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 7e9224d..1dd4ca4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4007,6 +4007,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4007 { 4007 {
4008 linknum -= (m_host.ParentGroup.PrimCount) + 1; 4008 linknum -= (m_host.ParentGroup.PrimCount) + 1;
4009 4009
4010 if (linknum < 0)
4011 return UUID.Zero.ToString();
4012
4010 List<ScenePresence> avatars = GetLinkAvatars(ScriptBaseClass.LINK_SET); 4013 List<ScenePresence> avatars = GetLinkAvatars(ScriptBaseClass.LINK_SET);
4011 if (avatars.Count > linknum) 4014 if (avatars.Count > linknum)
4012 { 4015 {
@@ -6753,7 +6756,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6753 } 6756 }
6754 if (buttons.Data[i].ToString().Length > 24) 6757 if (buttons.Data[i].ToString().Length > 24)
6755 { 6758 {
6756 LSLError("button label cannot be longer than 24 characters"); 6759 llWhisper(ScriptBaseClass.DEBUG_CHANNEL, "button label cannot be longer than 24 characters");
6757 return; 6760 return;
6758 } 6761 }
6759 buts[i] = buttons.Data[i].ToString(); 6762 buts[i] = buttons.Data[i].ToString();
@@ -7316,7 +7319,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7316 LSL_Vector v; 7319 LSL_Vector v;
7317 v = rules.GetVector3Item(idx++); 7320 v = rules.GetVector3Item(idx++);
7318 av.OffsetPosition = new Vector3((float)v.x, (float)v.y, (float)v.z); 7321 av.OffsetPosition = new Vector3((float)v.x, (float)v.y, (float)v.z);
7319 av.SendFullUpdateToAllClients(); 7322 av.SendAvatarDataToAllAgents();
7320 7323
7321 break; 7324 break;
7322 7325
@@ -7326,7 +7329,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7326 LSL_Rotation r; 7329 LSL_Rotation r;
7327 r = rules.GetQuaternionItem(idx++); 7330 r = rules.GetQuaternionItem(idx++);
7328 av.OffsetRotation = new Quaternion((float)r.x, (float)r.y, (float)r.z, (float)r.s); 7331 av.OffsetRotation = new Quaternion((float)r.x, (float)r.y, (float)r.z, (float)r.s);
7329 av.SendFullUpdateToAllClients(); 7332 av.SendAvatarDataToAllAgents();
7330 break; 7333 break;
7331 } 7334 }
7332 } 7335 }