Make the estate setting "Allow direct teleport" override the constraint

of local tepeports to landing points like it is meant to
avinationmerge
Melanie 2011-01-27 07:07:33 +01:00
parent 2a9e712cb4
commit b13eac9996
1 changed files with 3 additions and 0 deletions

View File

@ -4426,6 +4426,9 @@ if (m_animator.m_jumping) force.Z = m_animator.m_jumpVelocity; // add for ju
if ((TeleportFlags & TeleportFlags.ViaLure) != 0)
return;
if (m_scene.RegionInfo.EstateSettings.AllowDirectTeleport)
return;
ILandObject land = m_scene.LandChannel.GetLandObject(pos.X, pos.Y);
if (land.LandData.LandingType == (byte)LandingType.LandingPoint &&