From 15b6d8c1477e6a294819bf5c0c510d909997fb8f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 4 Apr 2019 00:50:54 +0100 Subject: send agent view range to new child agents --- OpenSim/Framework/AgentCircuitData.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Framework/AgentCircuitData.cs') diff --git a/OpenSim/Framework/AgentCircuitData.cs b/OpenSim/Framework/AgentCircuitData.cs index 5a9eeb5..330a41e 100644 --- a/OpenSim/Framework/AgentCircuitData.cs +++ b/OpenSim/Framework/AgentCircuitData.cs @@ -173,6 +173,7 @@ namespace OpenSim.Framework /// Position the Agent's Avatar starts in the region /// public Vector3 startpos; + public float startfar = -1.0f; public Dictionary ServiceURLs; @@ -219,6 +220,8 @@ namespace OpenSim.Framework args["channel"] = OSD.FromString(Channel); args["mac"] = OSD.FromString(Mac); args["id0"] = OSD.FromString(Id0); + if(startfar > 0) + args["far"] = OSD.FromReal(startfar); if (Appearance != null) { @@ -327,6 +330,9 @@ namespace OpenSim.Framework if (args["start_pos"] != null) Vector3.TryParse(args["start_pos"].AsString(), out startpos); + if(args["far"] != null) + startfar = (float)args["far"].AsReal(); + //m_log.InfoFormat("[AGENTCIRCUITDATA]: agentid={0}, child={1}, startpos={2}", AgentID, child, startpos); try -- cgit v1.1