diff options
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/Simulator/World.cs')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/Simulator/World.cs | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/OpenSim/OpenSim.RegionServer/Simulator/World.cs b/OpenSim/OpenSim.RegionServer/Simulator/World.cs index dda8ac4..765c74e 100644 --- a/OpenSim/OpenSim.RegionServer/Simulator/World.cs +++ b/OpenSim/OpenSim.RegionServer/Simulator/World.cs | |||
@@ -627,19 +627,18 @@ namespace OpenSim.RegionServer.Simulator | |||
627 | try | 627 | try |
628 | { | 628 | { |
629 | MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Creating new avatar for remote viewer agent"); | 629 | MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Creating new avatar for remote viewer agent"); |
630 | newAvatar = new Avatar(agentClient, this, m_regionName, m_clientThreads, m_regionHandle, true, 20); | 630 | newAvatar = new Avatar(agentClient, this); |
631 | MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Adding new avatar to world"); | 631 | MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Adding new avatar to world"); |
632 | MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Starting RegionHandshake "); | 632 | MainConsole.Instance.Notice("World.cs:AddViewerAgent() - Starting RegionHandshake "); |
633 | newAvatar.SendRegionHandshake(this); | 633 | estateManager.sendRegionHandshake(newAvatar.ControllingClient); |
634 | //if (!agentClient.m_child) | ||
635 | //{ | ||
636 | 634 | ||
637 | PhysicsVector pVec = new PhysicsVector(newAvatar.Pos.X, newAvatar.Pos.Y, newAvatar.Pos.Z); | 635 | PhysicsVector pVec = new PhysicsVector(newAvatar.Pos.X, newAvatar.Pos.Y, newAvatar.Pos.Z); |
638 | lock (this.LockPhysicsEngine) | 636 | lock (this.LockPhysicsEngine) |
639 | { | 637 | { |
640 | newAvatar.PhysActor = this.phyScene.AddAvatar(pVec); | 638 | newAvatar.PhysActor = this.phyScene.AddAvatar(pVec); |
641 | } | 639 | } |
642 | // } | 640 | |
641 | |||
643 | lock (Entities) | 642 | lock (Entities) |
644 | { | 643 | { |
645 | if (!Entities.ContainsKey(agentClient.AgentID)) | 644 | if (!Entities.ContainsKey(agentClient.AgentID)) |