diff options
author | UbitUmarov | 2019-01-04 01:55:18 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-04 01:55:18 +0000 |
commit | f58a1060681efdd1fe0e9f856fa16b8d93862337 (patch) | |
tree | 9395a1732143a1f5f8f7aaccf6a142a37176714b /OpenSim | |
parent | change cancel kill update flags (diff) | |
download | opensim-SC-f58a1060681efdd1fe0e9f856fa16b8d93862337.zip opensim-SC-f58a1060681efdd1fe0e9f856fa16b8d93862337.tar.gz opensim-SC-f58a1060681efdd1fe0e9f856fa16b8d93862337.tar.bz2 opensim-SC-f58a1060681efdd1fe0e9f856fa16b8d93862337.tar.xz |
broadcast position updates after tp
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index fd8c6fc..7e20592 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2338,10 +2338,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
2338 | m_agentTransfer.EnableChildAgents(this); | 2338 | m_agentTransfer.EnableChildAgents(this); |
2339 | } | 2339 | } |
2340 | } | 2340 | } |
2341 | // let updates be sent, with some delay | 2341 | if(gotCrossUpdate) |
2342 | m_lastChildUpdatesTime = Util.EnvironmentTickCount() + 10000; | 2342 | { |
2343 | m_lastChildUpdatesTime = Util.EnvironmentTickCount() + 10000; | ||
2344 | m_lastChildAgentUpdateDrawDistance = DrawDistance; | ||
2345 | } | ||
2346 | else | ||
2347 | { | ||
2348 | m_lastChildUpdatesTime = 0; | ||
2349 | m_lastChildAgentUpdateDrawDistance = -1000; | ||
2350 | } | ||
2343 | m_lastChildAgentUpdateGodLevel = GodController.ViwerUIGodLevel; | 2351 | m_lastChildAgentUpdateGodLevel = GodController.ViwerUIGodLevel; |
2344 | m_lastChildAgentUpdateDrawDistance = DrawDistance; | ||
2345 | m_lastChildAgentUpdatePosition = AbsolutePosition; | 2352 | m_lastChildAgentUpdatePosition = AbsolutePosition; |
2346 | m_childUpdatesBusy = false; // allow them | 2353 | m_childUpdatesBusy = false; // allow them |
2347 | } | 2354 | } |
@@ -4321,10 +4328,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4321 | return; | 4328 | return; |
4322 | 4329 | ||
4323 | //possible KnownRegionHandles always contains current region and this check is not needed | 4330 | //possible KnownRegionHandles always contains current region and this check is not needed |
4324 | int minhandles = 0; | 4331 | int minhandles = KnownRegionHandles.Contains(RegionHandle) ? 1 : 0; |
4325 | if(KnownRegionHandles.Contains(RegionHandle)) | ||
4326 | minhandles++; | ||
4327 | |||
4328 | if(KnownRegionHandles.Count > minhandles) | 4332 | if(KnownRegionHandles.Count > minhandles) |
4329 | { | 4333 | { |
4330 | int tdiff = Util.EnvironmentTickCountSubtract(m_lastChildUpdatesTime); | 4334 | int tdiff = Util.EnvironmentTickCountSubtract(m_lastChildUpdatesTime); |