diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 7b4b653..e26aef3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6211,8 +6211,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6211 | UUID agentId = new UUID(); | 6211 | UUID agentId = new UUID(); |
6212 | if (!UUID.TryParse(agent, out agentId)) | 6212 | if (!UUID.TryParse(agent, out agentId)) |
6213 | return new LSL_Integer(0); | 6213 | return new LSL_Integer(0); |
6214 | if (agentId == m_host.GroupID) | ||
6215 | return new LSL_Integer(1); | ||
6214 | ScenePresence presence = World.GetScenePresence(agentId); | 6216 | ScenePresence presence = World.GetScenePresence(agentId); |
6215 | if (presence == null || presence.IsChildAgent) // Return flase for child agents | 6217 | if (presence == null || presence.IsChildAgent) // Return false for child agents |
6216 | return new LSL_Integer(0); | 6218 | return new LSL_Integer(0); |
6217 | IClientAPI client = presence.ControllingClient; | 6219 | IClientAPI client = presence.ControllingClient; |
6218 | if (m_host.GroupID == client.ActiveGroupId) | 6220 | if (m_host.GroupID == client.ActiveGroupId) |
@@ -7554,7 +7556,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7554 | return; | 7556 | return; |
7555 | LSL_Vector v; | 7557 | LSL_Vector v; |
7556 | v = rules.GetVector3Item(idx++); | 7558 | v = rules.GetVector3Item(idx++); |
7557 | av.AbsolutePosition = new Vector3((float)v.x, (float)v.y, (float)v.z); | 7559 | av.OffsetPosition = new Vector3((float)v.x, (float)v.y, (float)v.z); |
7558 | av.SendAvatarDataToAllAgents(); | 7560 | av.SendAvatarDataToAllAgents(); |
7559 | 7561 | ||
7560 | break; | 7562 | break; |