diff options
author | BlueWall | 2012-02-18 00:32:09 -0500 |
---|---|---|
committer | BlueWall | 2012-02-19 12:41:30 -0500 |
commit | 86e8a56fe1ac6913a11160519ddd66f648756241 (patch) | |
tree | bb04b235d041099a1a7af556d075143ad7586a37 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Parcel sales support to SQLite (diff) | |
download | opensim-SC_OLD-86e8a56fe1ac6913a11160519ddd66f648756241.zip opensim-SC_OLD-86e8a56fe1ac6913a11160519ddd66f648756241.tar.gz opensim-SC_OLD-86e8a56fe1ac6913a11160519ddd66f648756241.tar.bz2 opensim-SC_OLD-86e8a56fe1ac6913a11160519ddd66f648756241.tar.xz |
Propagate our teleport flags on logins
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index ecc553d..841be96 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3261,6 +3261,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3261 | { | 3261 | { |
3262 | bool vialogin = ((teleportFlags & (uint)Constants.TeleportFlags.ViaLogin) != 0 || | 3262 | bool vialogin = ((teleportFlags & (uint)Constants.TeleportFlags.ViaLogin) != 0 || |
3263 | (teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) != 0); | 3263 | (teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) != 0); |
3264 | bool viahome = ((teleportFlags & (uint)Constants.TeleportFlags.ViaHome) != 0); | ||
3265 | bool godlike = ((teleportFlags & (uint)Constants.TeleportFlags.Godlike) != 0); | ||
3266 | |||
3264 | reason = String.Empty; | 3267 | reason = String.Empty; |
3265 | 3268 | ||
3266 | //Teleport flags: | 3269 | //Teleport flags: |
@@ -3429,7 +3432,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3429 | } | 3432 | } |
3430 | 3433 | ||
3431 | // Honor Estate teleport routing via Telehubs | 3434 | // Honor Estate teleport routing via Telehubs |
3432 | if (RegionInfo.RegionSettings.TelehubObject != UUID.Zero && RegionInfo.EstateSettings.AllowDirectTeleport == false) | 3435 | if (RegionInfo.RegionSettings.TelehubObject != UUID.Zero && RegionInfo.EstateSettings.AllowDirectTeleport == false && !viahome && !godlike) |
3433 | { | 3436 | { |
3434 | SceneObjectGroup telehub = GetSceneObjectGroup(RegionInfo.RegionSettings.TelehubObject); | 3437 | SceneObjectGroup telehub = GetSceneObjectGroup(RegionInfo.RegionSettings.TelehubObject); |
3435 | // Can have multiple SpawnPoints | 3438 | // Can have multiple SpawnPoints |