From 8d4c1945c2902f1b91a7f9764189d32c6ba62b3b Mon Sep 17 00:00:00 2001 From: AliciaRaven Date: Mon, 29 Sep 2014 11:24:51 +0100 Subject: HG Restricted appearance checking code is only called when HG teleporting via the map but bypassed completely when teleporting via landmarks. This fixes this by including a call when acting on landmarks. Does not affect local grid teleports as flags are checked. --- .../Framework/EntityTransfer/HGEntityTransferModule.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim') 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 if (message != null) sp.ControllingClient.SendAgentAlertMessage(message, true); + // Validate assorted conditions + string reason = string.Empty; + if (!ValidateGenericConditions(sp, gatekeeper, finalDestination, 0, out reason)) + { + sp.ControllingClient.SendTeleportFailed(reason); + return; + } + transferMod.DoTeleport( sp, gatekeeper, finalDestination, lm.Position, Vector3.UnitX, (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaLandmark)); -- cgit v1.1