aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs25
1 files changed, 14 insertions, 11 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs
index 4e94c52..9e23831 100644
--- a/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs
+++ b/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs
@@ -174,7 +174,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
174 agent.InventoryFolder = UUID.Zero; 174 agent.InventoryFolder = UUID.Zero;
175 agent.startpos = position; 175 agent.startpos = position;
176 agent.child = true; 176 agent.child = true;
177 if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY)) 177 if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY) || isHyperLink)
178 { 178 {
179 // brand new agent 179 // brand new agent
180 agent.CapsPath = Util.GetRandomCapsPath(); 180 agent.CapsPath = Util.GetRandomCapsPath();
@@ -210,16 +210,19 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
210 // TODO: make Event Queue disablable! 210 // TODO: make Event Queue disablable!
211 } 211 }
212 212
213 if (!m_commsProvider.InterRegion.ExpectAvatarCrossing(reg.RegionHandle, avatar.ControllingClient.AgentId, 213 m_commsProvider.InterRegion.ExpectAvatarCrossing(reg.RegionHandle, avatar.ControllingClient.AgentId,
214 position, false)) 214 position, false);
215 { 215
216 avatar.ControllingClient.SendTeleportFailed("Problem with destination."); 216 //if (!m_commsProvider.InterRegion.ExpectAvatarCrossing(reg.RegionHandle, avatar.ControllingClient.AgentId,
217 // We should close that agent we just created over at destination... 217 // position, false))
218 List<ulong> lst = new List<ulong>(); 218 //{
219 lst.Add(reg.RegionHandle); 219 // avatar.ControllingClient.SendTeleportFailed("Problem with destination.");
220 SendCloseChildAgentAsync(avatar.UUID, lst); 220 // // We should close that agent we just created over at destination...
221 return; 221 // List<ulong> lst = new List<ulong>();
222 } 222 // lst.Add(realHandle);
223 // SendCloseChildAgentAsync(avatar.UUID, lst);
224 // return;
225 //}
223 226
224 Thread.Sleep(2000); 227 Thread.Sleep(2000);
225 228