diff options
author | Melanie | 2010-11-25 01:25:56 +0000 |
---|---|---|
committer | Melanie | 2010-11-25 01:25:56 +0000 |
commit | eb9d7bff6c8dc73c86632ea0dbc7081503334cf3 (patch) | |
tree | 2d1446d488e7864a04be4ce7958c196e4cf33107 /OpenSim/Region/ScriptEngine | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | Prevent an overlength button label from producing a debug dump and aborting (diff) | |
download | opensim-SC-eb9d7bff6c8dc73c86632ea0dbc7081503334cf3.zip opensim-SC-eb9d7bff6c8dc73c86632ea0dbc7081503334cf3.tar.gz opensim-SC-eb9d7bff6c8dc73c86632ea0dbc7081503334cf3.tar.bz2 opensim-SC-eb9d7bff6c8dc73c86632ea0dbc7081503334cf3.tar.xz |
Merge branch 'careminster-presence-refactor' of ssh://melanie@3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 9 |
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 | } |