diff options
author | Oren Hurvitz | 2014-04-06 17:36:46 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-04-06 15:42:33 +0100 |
commit | f3508649f5eceb9f8862a7f377591a378f044aa7 (patch) | |
tree | 3fa686386e110dfa0cf44ecab7df2a087b1819dc /OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs | |
parent | When preparing a Hypergrid teleport, tell the receiving grid which user is en... (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs | 6 |
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 |