diff options
author | UbitUmarov | 2019-04-04 20:16:23 +0100 |
---|---|---|
committer | UbitUmarov | 2019-04-04 20:16:23 +0100 |
commit | 50c810549c5faf87017c189326732ba8899a58d0 (patch) | |
tree | 01e44c6632e99a0d760b4a685c5bb892b9e44479 /OpenSim/Region/CoreModules | |
parent | control visible regions by avatar position and view range, first dirty code (diff) | |
download | opensim-SC-50c810549c5faf87017c189326732ba8899a58d0.zip opensim-SC-50c810549c5faf87017c189326732ba8899a58d0.tar.gz opensim-SC-50c810549c5faf87017c189326732ba8899a58d0.tar.bz2 opensim-SC-50c810549c5faf87017c189326732ba8899a58d0.tar.xz |
change visible regions also by view range change; fix check on crossings
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index b4ac968..8668558 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -1785,11 +1785,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1785 | cAgent.Position = pos; | 1785 | cAgent.Position = pos; |
1786 | cAgent.ChildrenCapSeeds = agent.KnownRegions; | 1786 | cAgent.ChildrenCapSeeds = agent.KnownRegions; |
1787 | 1787 | ||
1788 | childRegionsToClose = agent.GetChildAgentsToClose(neighbourRegion.RegionHandle, neighbourRegion.RegionSizeX, neighbourRegion.RegionSizeY); | 1788 | if(ctx.OutboundVersion < 0.7f) |
1789 | if(cAgent.ChildrenCapSeeds != null) | ||
1790 | { | 1789 | { |
1791 | foreach(ulong regh in childRegionsToClose) | 1790 | childRegionsToClose = agent.GetChildAgentsToClose(neighbourRegion.RegionHandle, neighbourRegion.RegionSizeX, neighbourRegion.RegionSizeY); |
1792 | cAgent.ChildrenCapSeeds.Remove(regh); | 1791 | if(cAgent.ChildrenCapSeeds != null) |
1792 | { | ||
1793 | foreach(ulong regh in childRegionsToClose) | ||
1794 | cAgent.ChildrenCapSeeds.Remove(regh); | ||
1795 | } | ||
1793 | } | 1796 | } |
1794 | 1797 | ||
1795 | if (isFlying) | 1798 | if (isFlying) |