aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs18
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);