diff options
author | UbitUmarov | 2014-08-10 20:09:02 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-10 20:09:02 +0100 |
commit | 7fcd1068e742d88fbda94ae079e900424807d021 (patch) | |
tree | 7d08c0fde26c1199e67131eae5a159a74b13e119 /OpenSim/Region/CoreModules | |
parent | actually let delay match throttles as original design (diff) | |
download | opensim-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/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 14 |
1 files changed, 10 insertions, 4 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) |