From a9a126063fa1d4f2ec628e4a00321c314cb893fd Mon Sep 17 00:00:00 2001 From: dan miller Date: Mon, 24 Sep 2007 02:40:13 +0000 Subject: long-lost fixes to physics -- proper physical avatar management on crossings, TP --- OpenSim/Region/ClientStack/ClientView.cs | 2 +- OpenSim/Region/Environment/Scenes/Scene.cs | 4 ++-- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index dcca31c..3b4c0f8 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs @@ -277,7 +277,7 @@ namespace OpenSim.Region.ClientStack clientPingTimer.Enabled = true; MainLog.Instance.Verbose("OpenSimClient.cs:InitNewClient() - Adding viewer agent to scene"); - this.m_scene.AddNewClient(this, false); + this.m_scene.AddNewClient(this, true); } protected virtual void AuthUser() diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 22f69a5..97a4ae1 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -1063,9 +1063,9 @@ namespace OpenSim.Region.Environment.Scenes // agent.startpos = new LLVector3(128, 128, 70); agent.startpos = position; agent.child = true; + m_scenePresences[remoteClient.AgentId].Close(); commsManager.InterRegion.InformRegionOfChildAgent(regionHandle, agent); commsManager.InterRegion.ExpectAvatarCrossing(regionHandle, remoteClient.AgentId, position, false); - AgentCircuitData circuitdata = remoteClient.RequestClientInfo(); string capsPath = Util.GetCapsURL(remoteClient.AgentId); remoteClient.SendRegionTeleport(regionHandle, 13, reg.ExternalEndPoint, 4, (1 << 4), capsPath); @@ -1364,4 +1364,4 @@ namespace OpenSim.Region.Environment.Scenes base.Close(); } } -} \ No newline at end of file +} diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index f594789..4d2c8e2 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -413,6 +413,7 @@ namespace OpenSim.Region.Environment.Scenes m_isChildAgent = false; //this.m_scene.SendAllSceneObjectsToClient(this.ControllingClient); + this.MakeAvatarPhysical(this.AbsolutePosition, false); } } -- cgit v1.1