diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs index a3cebe9..a0bb146 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs | |||
@@ -541,6 +541,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
541 | if (message != null) | 541 | if (message != null) |
542 | sp.ControllingClient.SendAgentAlertMessage(message, true); | 542 | sp.ControllingClient.SendAgentAlertMessage(message, true); |
543 | 543 | ||
544 | // Validate assorted conditions | ||
545 | string reason = string.Empty; | ||
546 | if (!ValidateGenericConditions(sp, gatekeeper, finalDestination, 0, out reason)) | ||
547 | { | ||
548 | sp.ControllingClient.SendTeleportFailed(reason); | ||
549 | return; | ||
550 | } | ||
551 | |||
544 | transferMod.DoTeleport( | 552 | transferMod.DoTeleport( |
545 | sp, gatekeeper, finalDestination, lm.Position, Vector3.UnitX, | 553 | sp, gatekeeper, finalDestination, lm.Position, Vector3.UnitX, |
546 | (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaLandmark)); | 554 | (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaLandmark)); |