diff options
Diffstat (limited to 'OpenSim/Framework/ChildAgentDataUpdate.cs')
-rw-r--r-- | OpenSim/Framework/ChildAgentDataUpdate.cs | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/OpenSim/Framework/ChildAgentDataUpdate.cs b/OpenSim/Framework/ChildAgentDataUpdate.cs index 8c32734..2a8e67d 100644 --- a/OpenSim/Framework/ChildAgentDataUpdate.cs +++ b/OpenSim/Framework/ChildAgentDataUpdate.cs | |||
@@ -171,9 +171,10 @@ namespace OpenSim.Framework | |||
171 | /// Soon to be decommissioned | 171 | /// Soon to be decommissioned |
172 | /// </summary> | 172 | /// </summary> |
173 | /// <param name="cAgent"></param> | 173 | /// <param name="cAgent"></param> |
174 | public void CopyFrom(ChildAgentDataUpdate cAgent) | 174 | public void CopyFrom(ChildAgentDataUpdate cAgent, UUID sid) |
175 | { | 175 | { |
176 | AgentID = new UUID(cAgent.AgentID); | 176 | AgentID = new UUID(cAgent.AgentID); |
177 | SessionID = sid; | ||
177 | 178 | ||
178 | // next: ??? | 179 | // next: ??? |
179 | Size = new Vector3(); | 180 | Size = new Vector3(); |
@@ -291,7 +292,13 @@ namespace OpenSim.Framework | |||
291 | public Vector3 AtAxis; | 292 | public Vector3 AtAxis; |
292 | public Vector3 LeftAxis; | 293 | public Vector3 LeftAxis; |
293 | public Vector3 UpAxis; | 294 | public Vector3 UpAxis; |
294 | public bool ChangedGrid; | 295 | |
296 | /// <summary> | ||
297 | /// Signal on a V2 teleport that Scene.IncomingChildAgentDataUpdate(AgentData ad) should wait for the | ||
298 | /// scene presence to become root (triggered when the viewer sends a CompleteAgentMovement UDP packet after | ||
299 | /// establishing the connection triggered by it's receipt of a TeleportFinish EQ message). | ||
300 | /// </summary> | ||
301 | public bool SenderWantsToWaitForRoot; | ||
295 | 302 | ||
296 | public float Far; | 303 | public float Far; |
297 | public float Aspect; | 304 | public float Aspect; |
@@ -362,8 +369,9 @@ namespace OpenSim.Framework | |||
362 | args["left_axis"] = OSD.FromString(LeftAxis.ToString()); | 369 | args["left_axis"] = OSD.FromString(LeftAxis.ToString()); |
363 | args["up_axis"] = OSD.FromString(UpAxis.ToString()); | 370 | args["up_axis"] = OSD.FromString(UpAxis.ToString()); |
364 | 371 | ||
365 | 372 | //backwards compatibility | |
366 | args["changed_grid"] = OSD.FromBoolean(ChangedGrid); | 373 | args["changed_grid"] = OSD.FromBoolean(SenderWantsToWaitForRoot); |
374 | args["wait_for_root"] = OSD.FromBoolean(SenderWantsToWaitForRoot); | ||
367 | args["far"] = OSD.FromReal(Far); | 375 | args["far"] = OSD.FromReal(Far); |
368 | args["aspect"] = OSD.FromReal(Aspect); | 376 | args["aspect"] = OSD.FromReal(Aspect); |
369 | 377 | ||
@@ -536,8 +544,8 @@ namespace OpenSim.Framework | |||
536 | if (args["up_axis"] != null) | 544 | if (args["up_axis"] != null) |
537 | Vector3.TryParse(args["up_axis"].AsString(), out AtAxis); | 545 | Vector3.TryParse(args["up_axis"].AsString(), out AtAxis); |
538 | 546 | ||
539 | if (args["changed_grid"] != null) | 547 | if (args.ContainsKey("wait_for_root") && args["wait_for_root"] != null) |
540 | ChangedGrid = args["changed_grid"].AsBoolean(); | 548 | SenderWantsToWaitForRoot = args["wait_for_root"].AsBoolean(); |
541 | 549 | ||
542 | if (args["far"] != null) | 550 | if (args["far"] != null) |
543 | Far = (float)(args["far"].AsReal()); | 551 | Far = (float)(args["far"].AsReal()); |