aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-06 17:36:46 +0300
committerOren Hurvitz2014-04-06 15:42:33 +0100
commitf3508649f5eceb9f8862a7f377591a378f044aa7 (patch)
tree3fa686386e110dfa0cf44ecab7df2a087b1819dc /OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
parentWhen preparing a Hypergrid teleport, tell the receiving grid which user is en... (diff)
downloadopensim-SC_OLD-f3508649f5eceb9f8862a7f377591a378f044aa7.zip
opensim-SC_OLD-f3508649f5eceb9f8862a7f377591a378f044aa7.tar.gz
opensim-SC_OLD-f3508649f5eceb9f8862a7f377591a378f044aa7.tar.bz2
opensim-SC_OLD-f3508649f5eceb9f8862a7f377591a378f044aa7.tar.xz
Fixed: during a teleport we always sent the error "The teleport destination could not be found" to the client. This happened on both success and failure.
On successful teleports this error wasn't actually shown to the user. But on failed teleports this error could hide the true cause of the failure. For example, attempting to use a Landmark that's more than 4095 regions away would result in two warnings appearing in the viewer: "Region too far" and "Destination could not be found". The second message hid the first one, so it wasn't obvious to the user what is actually the problem.
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
index 381baed..5b7dfe3 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
@@ -524,8 +524,6 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
524 { 524 {
525 ((Scene)(remoteClient.Scene)).RequestTeleportLocation(remoteClient, info.RegionHandle, lm.Position, 525 ((Scene)(remoteClient.Scene)).RequestTeleportLocation(remoteClient, info.RegionHandle, lm.Position,
526 Vector3.Zero, (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaLandmark)); 526 Vector3.Zero, (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaLandmark));
527
528 return;
529 } 527 }
530 else 528 else
531 { 529 {
@@ -561,13 +559,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
561 else 559 else
562 { 560 {
563 remoteClient.SendTeleportFailed(message); 561 remoteClient.SendTeleportFailed(message);
564 return;
565 } 562 }
566 563
567 } 564 }
568
569 // can't find the region: Tell viewer and abort
570 remoteClient.SendTeleportFailed("The teleport destination could not be found.");
571 } 565 }
572 566
573 #endregion 567 #endregion