From 68bdd0b7fedcfa8546e3071b32a0e8451dd8942d Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 5 Dec 2011 15:26:49 +0100 Subject: Fix setting seated avatar position and make llSameGroup work as in SL. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 ++++-- 1 file 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 UUID agentId = new UUID(); if (!UUID.TryParse(agent, out agentId)) return new LSL_Integer(0); + if (agentId == m_host.GroupID) + return new LSL_Integer(1); ScenePresence presence = World.GetScenePresence(agentId); - if (presence == null || presence.IsChildAgent) // Return flase for child agents + if (presence == null || presence.IsChildAgent) // Return false for child agents return new LSL_Integer(0); IClientAPI client = presence.ControllingClient; if (m_host.GroupID == client.ActiveGroupId) @@ -7554,7 +7556,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return; LSL_Vector v; v = rules.GetVector3Item(idx++); - av.AbsolutePosition = new Vector3((float)v.x, (float)v.y, (float)v.z); + av.OffsetPosition = new Vector3((float)v.x, (float)v.y, (float)v.z); av.SendAvatarDataToAllAgents(); break; -- cgit v1.1