aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorBlueWall2012-05-18 17:47:00 -0400
committerBlueWall2012-05-18 17:51:38 -0400
commitc05f87b50c32c08818c291c76e46cb558083d35d (patch)
treef09e7bcf42e23b8280c0c71d4004f5494d1148a2 /OpenSim/Region/Framework
parentFix build break. Comment out EQG deregister/register logging. (diff)
downloadopensim-SC-c05f87b50c32c08818c291c76e46cb558083d35d.zip
opensim-SC-c05f87b50c32c08818c291c76e46cb558083d35d.tar.gz
opensim-SC-c05f87b50c32c08818c291c76e46cb558083d35d.tar.bz2
opensim-SC-c05f87b50c32c08818c291c76e46cb558083d35d.tar.xz
Provide Telehub setting to allow use of landmarks
Setting to allow use of landmarks to override telehub routing. Default is off.
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs7
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs3
2 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 3cce370..d09b895 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -577,6 +577,12 @@ namespace OpenSim.Region.Framework.Scenes
577 { 577 {
578 get { return m_SpawnPointRouting; } 578 get { return m_SpawnPointRouting; }
579 } 579 }
580 // allow landmarks to pass
581 private bool m_TelehubAllowLandmarks;
582 public bool TelehubAllowLandmarks
583 {
584 get { return m_TelehubAllowLandmarks; }
585 }
580 586
581 #endregion Properties 587 #endregion Properties
582 588
@@ -733,6 +739,7 @@ namespace OpenSim.Region.Framework.Scenes
733 m_defaultScriptEngine = startupConfig.GetString("DefaultScriptEngine", "XEngine"); 739 m_defaultScriptEngine = startupConfig.GetString("DefaultScriptEngine", "XEngine");
734 740
735 m_SpawnPointRouting = startupConfig.GetString("SpawnPointRouting", "closest"); 741 m_SpawnPointRouting = startupConfig.GetString("SpawnPointRouting", "closest");
742 m_TelehubAllowLandmarks = startupConfig.GetBoolean("TelehubAllowLandmark", false);
736 743
737 IConfig packetConfig = m_config.Configs["PacketPool"]; 744 IConfig packetConfig = m_config.Configs["PacketPool"];
738 if (packetConfig != null) 745 if (packetConfig != null)
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 0c66e49..6022175 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3929,7 +3929,8 @@ namespace OpenSim.Region.Framework.Scenes
3929 { 3929 {
3930 if ((m_teleportFlags & (TeleportFlags.ViaLogin | TeleportFlags.ViaRegionID)) == 3930 if ((m_teleportFlags & (TeleportFlags.ViaLogin | TeleportFlags.ViaRegionID)) ==
3931 (TeleportFlags.ViaLogin | TeleportFlags.ViaRegionID) || 3931 (TeleportFlags.ViaLogin | TeleportFlags.ViaRegionID) ||
3932 (m_teleportFlags & TeleportFlags.ViaLandmark) != 0 || 3932 // (m_teleportFlags & TeleportFlags.ViaLandmark) != 0 ||
3933 (m_scene.TelehubAllowLandmarks == true ? false : ((m_teleportFlags & TeleportFlags.ViaLandmark) != 0 )) ||
3933 (m_teleportFlags & TeleportFlags.ViaLocation) != 0 || 3934 (m_teleportFlags & TeleportFlags.ViaLocation) != 0 ||
3934 (m_teleportFlags & Constants.TeleportFlags.ViaHGLogin) != 0) 3935 (m_teleportFlags & Constants.TeleportFlags.ViaHGLogin) != 0)
3935 { 3936 {