diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/SimClient.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim.RegionServer/SimClient.cs b/OpenSim.RegionServer/SimClient.cs index daaa6dd..9ae08f4 100644 --- a/OpenSim.RegionServer/SimClient.cs +++ b/OpenSim.RegionServer/SimClient.cs | |||
@@ -118,7 +118,9 @@ namespace OpenSim | |||
118 | 118 | ||
119 | if (m_gridServer.GetName() == "Remote") | 119 | if (m_gridServer.GetName() == "Remote") |
120 | { | 120 | { |
121 | this.m_child = m_authenticateSessionsHandler.GetAgentChildStatus(initialcirpack.CircuitCode.Code); | ||
121 | this.startpos = m_authenticateSessionsHandler.GetPosition(initialcirpack.CircuitCode.Code); | 122 | this.startpos = m_authenticateSessionsHandler.GetPosition(initialcirpack.CircuitCode.Code); |
123 | //Console.WriteLine("start pos is " + this.startpos.X + " , " + this.startpos.Y + " , " + this.startpos.Z); | ||
122 | } | 124 | } |
123 | else | 125 | else |
124 | { | 126 | { |
@@ -142,13 +144,15 @@ namespace OpenSim | |||
142 | # region Client Methods | 144 | # region Client Methods |
143 | public void UpgradeClient() | 145 | public void UpgradeClient() |
144 | { | 146 | { |
147 | Console.WriteLine("updateclient being called"); | ||
145 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "SimClient.cs:UpgradeClient() - upgrading child to full agent"); | 148 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "SimClient.cs:UpgradeClient() - upgrading child to full agent"); |
146 | this.m_child = false; | 149 | this.m_child = false; |
147 | this.m_world.RemoveViewerAgent(this); | 150 | this.m_world.RemoveViewerAgent(this); |
148 | if (!this.m_sandboxMode) | 151 | if (!this.m_sandboxMode) |
149 | { | 152 | { |
150 | this.startpos = ((RemoteGridBase)m_gridServer).agentcircuits[CircuitCode].startpos; | 153 | this.startpos = m_authenticateSessionsHandler.GetPosition(CircuitCode); |
151 | ((RemoteGridBase)m_gridServer).agentcircuits[CircuitCode].child = false; | 154 | m_authenticateSessionsHandler.UpdateAgentChildStatus(CircuitCode, false); |
155 | //Console.WriteLine("upgrade start pos is " + this.startpos.X + " , " + this.startpos.Y + " , " + this.startpos.Z); | ||
152 | } | 156 | } |
153 | this.InitNewClient(); | 157 | this.InitNewClient(); |
154 | } | 158 | } |