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