more on TP
parent
3cf9a257f7
commit
df14ed7d31
|
@ -1099,7 +1099,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
ulong destinationHandle = finalDestination.RegionHandle;
|
||||
|
||||
List<ulong> childRegionsToClose = null;
|
||||
if (ctx.OutboundVersion < 0.7)
|
||||
if (ctx.OutboundVersion < 0.7f)
|
||||
{
|
||||
childRegionsToClose = sp.GetChildAgentsToClose(destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY);
|
||||
|
||||
|
@ -1226,7 +1226,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
// Now let's make it officially a child agent
|
||||
sp.MakeChildAgent(destinationHandle);
|
||||
|
||||
if(ctx.OutboundVersion < 0.7)
|
||||
if(ctx.OutboundVersion < 0.7f)
|
||||
{
|
||||
if (logout)
|
||||
sp.closeAllChildAgents();
|
||||
|
@ -1249,9 +1249,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
"[ENTITY TRANSFER MODULE]: Closing agent {0} in {1} after teleport", sp.Name, Scene.Name);
|
||||
sp.Scene.CloseAgent(sp.UUID, false);
|
||||
}
|
||||
}
|
||||
sp.IsInTransit = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up an inter-region teleport that did not complete, either because of simulator failure or cancellation.
|
||||
|
@ -2077,7 +2077,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
List<AgentCircuitData> cagents = new List<AgentCircuitData>();
|
||||
List<ulong> newneighbours = new List<ulong>();
|
||||
|
||||
bool notHG = (sp.TeleportFlags & Constants.TeleportFlags.ViaHGLogin) != 0;
|
||||
bool notHG = (sp.TeleportFlags & Constants.TeleportFlags.ViaHGLogin) == 0;
|
||||
|
||||
foreach (GridRegion neighbour in neighbours)
|
||||
{
|
||||
|
@ -2120,13 +2120,19 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
cagents.Add(agent);
|
||||
}
|
||||
|
||||
// previousRegionNeighbourHandles now contains regions to forget
|
||||
if (previousRegionNeighbourHandles.Count > 0)
|
||||
{
|
||||
if (previousRegionNeighbourHandles.Contains(currentRegionHandler))
|
||||
previousRegionNeighbourHandles.Remove(currentRegionHandler);
|
||||
|
||||
// previousRegionNeighbourHandles now contains regions to forget
|
||||
foreach (ulong handler in previousRegionNeighbourHandles)
|
||||
seeds.Remove(handler);
|
||||
|
||||
List<ulong> toclose = new List<ulong>(previousRegionNeighbourHandles);
|
||||
sp.CloseChildAgents(toclose);
|
||||
}
|
||||
|
||||
/// Update all child agent with everyone's seeds
|
||||
// foreach (AgentCircuitData a in cagents)
|
||||
// a.ChildrenCapSeeds = new Dictionary<ulong, string>(seeds);
|
||||
|
@ -2159,12 +2165,6 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
int count = 0;
|
||||
IPEndPoint ipe;
|
||||
|
||||
if(previousRegionNeighbourHandles.Count > 0)
|
||||
{
|
||||
List<ulong> toclose = new List<ulong>(previousRegionNeighbourHandles);
|
||||
sp.CloseChildAgents(toclose);
|
||||
}
|
||||
|
||||
foreach (GridRegion neighbour in neighbours)
|
||||
{
|
||||
ulong handler = neighbour.RegionHandle;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue