aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2014-08-10 20:09:02 +0100
committerUbitUmarov2014-08-10 20:09:02 +0100
commit7fcd1068e742d88fbda94ae079e900424807d021 (patch)
tree7d08c0fde26c1199e67131eae5a159a74b13e119 /OpenSim/Region
parentactually let delay match throttles as original design (diff)
downloadopensim-SC-7fcd1068e742d88fbda94ae079e900424807d021.zip
opensim-SC-7fcd1068e742d88fbda94ae079e900424807d021.tar.gz
opensim-SC-7fcd1068e742d88fbda94ae079e900424807d021.tar.bz2
opensim-SC-7fcd1068e742d88fbda94ae079e900424807d021.tar.xz
TEST move parcelRegionCross to EntityTransferModule cross so it works on
sitting avatars. (may be bad) comented out sending root avatars information to the child that was just a root it should have it all already. Dont turn a sitting avatar physical, that needs to be a stand at SOG
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs14
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs8
2 files changed, 14 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index d6d86b9..af26998 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -1529,7 +1529,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1529 GridRegion neighbourRegion = GetDestination(agent.Scene, agent.UUID, agent.AbsolutePosition, out x, out y, out version, out newpos); 1529 GridRegion neighbourRegion = GetDestination(agent.Scene, agent.UUID, agent.AbsolutePosition, out x, out y, out version, out newpos);
1530 if (neighbourRegion == null) 1530 if (neighbourRegion == null)
1531 { 1531 {
1532 agent.ControllingClient.SendAlertMessage("Cannot region cross into banned parcel"); 1532 agent.ControllingClient.SendAlertMessage("Cannot region cross into void");
1533 return false; 1533 return false;
1534 } 1534 }
1535 1535
@@ -1680,7 +1680,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1680 neighbourRegion.RegionName, agent.Name); 1680 neighbourRegion.RegionName, agent.Name);
1681 1681
1682 ReInstantiateScripts(agent); 1682 ReInstantiateScripts(agent);
1683 agent.AddToPhysicalScene(isFlying); 1683 if(agent.ParentID == 0 && agent.ParentUUID == UUID.Zero)
1684 agent.AddToPhysicalScene(isFlying);
1684 1685
1685 return false; 1686 return false;
1686 } 1687 }
@@ -1749,8 +1750,13 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1749 m_entityTransferStateMachine.ResetFromTransit(agent.UUID); 1750 m_entityTransferStateMachine.ResetFromTransit(agent.UUID);
1750 1751
1751 // now we have a child agent in this region. Request all interesting data about other (root) agents 1752 // now we have a child agent in this region. Request all interesting data about other (root) agents
1752 agent.SendOtherAgentsAvatarDataToMe(); 1753
1753 agent.SendOtherAgentsAppearanceToMe(); 1754 // why do that? we either where a root having all that or we are leaving the area
1755
1756// agent.SendOtherAgentsAvatarDataToMe();
1757// agent.SendOtherAgentsAppearanceToMe();
1758
1759 agent.parcelRegionCross(false);
1754 1760
1755 // Backwards compatibility. Best effort 1761 // Backwards compatibility. Best effort
1756 if (version == "Unknown" || version == string.Empty) 1762 if (version == "Unknown" || version == string.Empty)
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 5acd51e..d65c250 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3863,7 +3863,7 @@ namespace OpenSim.Region.Framework.Scenes
3863 protected bool CrossToNewRegion() 3863 protected bool CrossToNewRegion()
3864 { 3864 {
3865 bool result = false; 3865 bool result = false;
3866 parcelRegionCross(false); 3866// parcelRegionCross(false);
3867 try 3867 try
3868 { 3868 {
3869 result = m_scene.CrossAgentToNewRegion(this, Flying); 3869 result = m_scene.CrossAgentToNewRegion(this, Flying);
@@ -3872,8 +3872,8 @@ namespace OpenSim.Region.Framework.Scenes
3872 { 3872 {
3873 result = m_scene.CrossAgentToNewRegion(this, false); 3873 result = m_scene.CrossAgentToNewRegion(this, false);
3874 } 3874 }
3875 if(!result) 3875 // if(!result)
3876 parcelRegionCross(true); 3876 // parcelRegionCross(true);
3877 3877
3878 return result; 3878 return result;
3879 3879
@@ -5531,7 +5531,7 @@ namespace OpenSim.Region.Framework.Scenes
5531 } 5531 }
5532 } 5532 }
5533 5533
5534 private void parcelRegionCross(bool abort) 5534 public void parcelRegionCross(bool abort)
5535 { 5535 {
5536 if (!ParcelHideThisAvatar) 5536 if (!ParcelHideThisAvatar)
5537 return; 5537 return;