mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Border crossing back to mostly working, still seems a problem in that you need to stop walking just after you cross the border for it to work properly (else you will continue moving into a negative position in the first sim)
This commit is contained in:
@@ -118,7 +118,9 @@ namespace OpenSim
|
||||
|
||||
if (m_gridServer.GetName() == "Remote")
|
||||
{
|
||||
this.m_child = m_authenticateSessionsHandler.GetAgentChildStatus(initialcirpack.CircuitCode.Code);
|
||||
this.startpos = m_authenticateSessionsHandler.GetPosition(initialcirpack.CircuitCode.Code);
|
||||
//Console.WriteLine("start pos is " + this.startpos.X + " , " + this.startpos.Y + " , " + this.startpos.Z);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -142,13 +144,15 @@ namespace OpenSim
|
||||
# region Client Methods
|
||||
public void UpgradeClient()
|
||||
{
|
||||
Console.WriteLine("updateclient being called");
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "SimClient.cs:UpgradeClient() - upgrading child to full agent");
|
||||
this.m_child = false;
|
||||
this.m_world.RemoveViewerAgent(this);
|
||||
if (!this.m_sandboxMode)
|
||||
{
|
||||
this.startpos = ((RemoteGridBase)m_gridServer).agentcircuits[CircuitCode].startpos;
|
||||
((RemoteGridBase)m_gridServer).agentcircuits[CircuitCode].child = false;
|
||||
this.startpos = m_authenticateSessionsHandler.GetPosition(CircuitCode);
|
||||
m_authenticateSessionsHandler.UpdateAgentChildStatus(CircuitCode, false);
|
||||
//Console.WriteLine("upgrade start pos is " + this.startpos.X + " , " + this.startpos.Y + " , " + this.startpos.Z);
|
||||
}
|
||||
this.InitNewClient();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user