From c4a0e574c80e2df8db6f993b74c19db04ac841aa Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 19 Nov 2018 14:07:48 +0000 Subject: [PATCH] mantis 8410: llwhisper, llSay and llShout emit from the source prim not root --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 +++--- 1 file changed, 3 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 f103de24f3..8987a8da55 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -1194,7 +1194,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api text = text.Substring(0, 1023); World.SimChat(Utils.StringToBytes(text), - ChatTypeEnum.Whisper, channelID, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, false); + ChatTypeEnum.Whisper, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID, false); IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface(); if (wComm != null) @@ -1234,7 +1234,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api text = text.Substring(0, 1023); World.SimChat(Utils.StringToBytes(text), - ChatTypeEnum.Say, channelID, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, false); + ChatTypeEnum.Say, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID, false); IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface(); if (wComm != null) @@ -1257,7 +1257,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api text = text.Substring(0, 1023); World.SimChat(Utils.StringToBytes(text), - ChatTypeEnum.Shout, channelID, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, true); + ChatTypeEnum.Shout, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID, true); IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface(); if (wComm != null)