Bug fix for Hypergrid. This bug was introduced by the recent TP fixes, and affected the jump back home.
parent
3aa7ad24da
commit
d6d4c267e0
|
@ -174,7 +174,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
|
||||||
agent.InventoryFolder = UUID.Zero;
|
agent.InventoryFolder = UUID.Zero;
|
||||||
agent.startpos = position;
|
agent.startpos = position;
|
||||||
agent.child = true;
|
agent.child = true;
|
||||||
if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY))
|
if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY) || isHyperLink)
|
||||||
{
|
{
|
||||||
// brand new agent
|
// brand new agent
|
||||||
agent.CapsPath = Util.GetRandomCapsPath();
|
agent.CapsPath = Util.GetRandomCapsPath();
|
||||||
|
@ -210,16 +210,19 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
|
||||||
// TODO: make Event Queue disablable!
|
// TODO: make Event Queue disablable!
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_commsProvider.InterRegion.ExpectAvatarCrossing(reg.RegionHandle, avatar.ControllingClient.AgentId,
|
m_commsProvider.InterRegion.ExpectAvatarCrossing(reg.RegionHandle, avatar.ControllingClient.AgentId,
|
||||||
position, false))
|
position, false);
|
||||||
{
|
|
||||||
avatar.ControllingClient.SendTeleportFailed("Problem with destination.");
|
//if (!m_commsProvider.InterRegion.ExpectAvatarCrossing(reg.RegionHandle, avatar.ControllingClient.AgentId,
|
||||||
// We should close that agent we just created over at destination...
|
// position, false))
|
||||||
List<ulong> lst = new List<ulong>();
|
//{
|
||||||
lst.Add(reg.RegionHandle);
|
// avatar.ControllingClient.SendTeleportFailed("Problem with destination.");
|
||||||
SendCloseChildAgentAsync(avatar.UUID, lst);
|
// // We should close that agent we just created over at destination...
|
||||||
return;
|
// List<ulong> lst = new List<ulong>();
|
||||||
}
|
// lst.Add(realHandle);
|
||||||
|
// SendCloseChildAgentAsync(avatar.UUID, lst);
|
||||||
|
// return;
|
||||||
|
//}
|
||||||
|
|
||||||
Thread.Sleep(2000);
|
Thread.Sleep(2000);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue