diff options
author | Melanie | 2012-01-09 19:22:06 +0000 |
---|---|---|
committer | Melanie | 2012-01-09 19:22:06 +0000 |
commit | bc08cc201b8b2537f9c5b01090384742454ff723 (patch) | |
tree | e49fd091b26880f1f0c16150739787edbb23a9a2 /OpenSim | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Fix teleport routing for incoming HG+Owner (diff) | |
download | opensim-SC-bc08cc201b8b2537f9c5b01090384742454ff723.zip opensim-SC-bc08cc201b8b2537f9c5b01090384742454ff723.tar.gz opensim-SC-bc08cc201b8b2537f9c5b01090384742454ff723.tar.bz2 opensim-SC-bc08cc201b8b2537f9c5b01090384742454ff723.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 0a71835..635bca7 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3845,6 +3845,24 @@ namespace OpenSim.Region.Framework.Scenes | |||
3845 | 3845 | ||
3846 | private void CheckAndAdjustLandingPoint(ref Vector3 pos) | 3846 | private void CheckAndAdjustLandingPoint(ref Vector3 pos) |
3847 | { | 3847 | { |
3848 | // // Some temporary debugging help to show all the TeleportFlags we have... | ||
3849 | // bool HG = false; | ||
3850 | // if((m_teleportFlags & (TeleportFlags)Constants.TeleportFlags.ViaHGLogin) == (TeleportFlags)Constants.TeleportFlags.ViaHGLogin) | ||
3851 | // HG = true; | ||
3852 | // | ||
3853 | // m_log.InfoFormat("[SCENE PRESENCE]: TELEPORT ******************"); | ||
3854 | // | ||
3855 | // for (uint i = 0; i <= 30 ; i++) | ||
3856 | // { | ||
3857 | // if((m_teleportFlags & (TeleportFlags)i) == (TeleportFlags)i) | ||
3858 | // if (HG == false) | ||
3859 | // m_log.InfoFormat("[SCENE PRESENCE]: Teleport Flags include {0}", ((TeleportFlags) i).ToString()); | ||
3860 | // else | ||
3861 | // m_log.InfoFormat("[SCENE PRESENCE]: HG Teleport Flags include {0}", ((TeleportFlags)i).ToString()); | ||
3862 | // } | ||
3863 | // | ||
3864 | // m_log.InfoFormat("[SCENE PRESENCE]: TELEPORT ******************"); | ||
3865 | |||
3848 | ILandObject land = m_scene.LandChannel.GetLandObject(pos.X, pos.Y); | 3866 | ILandObject land = m_scene.LandChannel.GetLandObject(pos.X, pos.Y); |
3849 | if (land != null) | 3867 | if (land != null) |
3850 | { | 3868 | { |
@@ -3864,7 +3882,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
3864 | GodLevel < 200 && | 3882 | GodLevel < 200 && |
3865 | ((land.LandData.OwnerID != m_uuid && | 3883 | ((land.LandData.OwnerID != m_uuid && |
3866 | (!m_scene.Permissions.IsGod(m_uuid)) && | 3884 | (!m_scene.Permissions.IsGod(m_uuid)) && |
3867 | (!m_scene.RegionInfo.EstateSettings.IsEstateManager(m_uuid))) || (m_teleportFlags & TeleportFlags.ViaLocation) != 0)) | 3885 | (!m_scene.RegionInfo.EstateSettings.IsEstateManager(m_uuid))) || (m_teleportFlags & TeleportFlags.ViaLocation) != 0) || |
3886 | ((m_teleportFlags & (TeleportFlags)Constants.TeleportFlags.ViaHGLogin) == (TeleportFlags)Constants.TeleportFlags.ViaHGLogin)) | ||
3868 | { | 3887 | { |
3869 | pos = land.LandData.UserLocation; | 3888 | pos = land.LandData.UserLocation; |
3870 | } | 3889 | } |