broadcast position updates after tp

0.9.1.0-post-fixes
UbitUmarov 2019-01-04 01:55:18 +00:00
parent dd5717f7ae
commit f58a106068
1 changed files with 11 additions and 7 deletions

View File

@ -2338,10 +2338,17 @@ namespace OpenSim.Region.Framework.Scenes
m_agentTransfer.EnableChildAgents(this);
}
}
// let updates be sent, with some delay
m_lastChildUpdatesTime = Util.EnvironmentTickCount() + 10000;
if(gotCrossUpdate)
{
m_lastChildUpdatesTime = Util.EnvironmentTickCount() + 10000;
m_lastChildAgentUpdateDrawDistance = DrawDistance;
}
else
{
m_lastChildUpdatesTime = 0;
m_lastChildAgentUpdateDrawDistance = -1000;
}
m_lastChildAgentUpdateGodLevel = GodController.ViwerUIGodLevel;
m_lastChildAgentUpdateDrawDistance = DrawDistance;
m_lastChildAgentUpdatePosition = AbsolutePosition;
m_childUpdatesBusy = false; // allow them
}
@ -4321,10 +4328,7 @@ namespace OpenSim.Region.Framework.Scenes
return;
//possible KnownRegionHandles always contains current region and this check is not needed
int minhandles = 0;
if(KnownRegionHandles.Contains(RegionHandle))
minhandles++;
int minhandles = KnownRegionHandles.Contains(RegionHandle) ? 1 : 0;
if(KnownRegionHandles.Count > minhandles)
{
int tdiff = Util.EnvironmentTickCountSubtract(m_lastChildUpdatesTime);