diff options
author | BlueWall | 2012-05-18 17:47:00 -0400 |
---|---|---|
committer | BlueWall | 2012-05-18 17:51:38 -0400 |
commit | c05f87b50c32c08818c291c76e46cb558083d35d (patch) | |
tree | f09e7bcf42e23b8280c0c71d4004f5494d1148a2 | |
parent | Fix build break. Comment out EQG deregister/register logging. (diff) | |
download | opensim-SC_OLD-c05f87b50c32c08818c291c76e46cb558083d35d.zip opensim-SC_OLD-c05f87b50c32c08818c291c76e46cb558083d35d.tar.gz opensim-SC_OLD-c05f87b50c32c08818c291c76e46cb558083d35d.tar.bz2 opensim-SC_OLD-c05f87b50c32c08818c291c76e46cb558083d35d.tar.xz |
Provide Telehub setting to allow use of landmarks
Setting to allow use of landmarks to override telehub routing. Default is off.
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 7 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 3 | ||||
-rwxr-xr-x | bin/OpenSim.ini.example | 5 |
3 files changed, 14 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 | { |
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 9f418a4..aa29c07 100755 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example | |||
@@ -249,6 +249,11 @@ | |||
249 | ;; "sequence" will place the avatar on the next sequential SpawnPoint | 249 | ;; "sequence" will place the avatar on the next sequential SpawnPoint |
250 | ; SpawnPointRouting = closest | 250 | ; SpawnPointRouting = closest |
251 | 251 | ||
252 | ;# {TelehubAllowLandmark} {} {Allow users with landmarks to override telehub routing} {true false} false | ||
253 | ;; TelehubAllowLandmark allows users with landmarks to override telehub routing and land at the landmark coordinates when set to true | ||
254 | ;; default is false | ||
255 | ; TelehubAllowLandmark = false | ||
256 | |||
252 | [Estates] | 257 | [Estates] |
253 | ; If these values are commented out then the user will be asked for estate details when required (this is the normal case). | 258 | ; If these values are commented out then the user will be asked for estate details when required (this is the normal case). |
254 | ; If these values are uncommented then they will be used to create a default estate as necessary. | 259 | ; If these values are uncommented then they will be used to create a default estate as necessary. |