diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/TelehubManager.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/TelehubManager.cs b/OpenSim/Region/CoreModules/World/Estate/TelehubManager.cs index 68b4ba5..9b92df9 100644 --- a/OpenSim/Region/CoreModules/World/Estate/TelehubManager.cs +++ b/OpenSim/Region/CoreModules/World/Estate/TelehubManager.cs | |||
@@ -109,10 +109,13 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
109 | 109 | ||
110 | try | 110 | try |
111 | { | 111 | { |
112 | float dist = (float) Util.GetDistanceTo(m_Scene.RegionInfo.RegionSettings.TelehubPos, point); | 112 | Vector3 thPos = m_Scene.RegionInfo.RegionSettings.TelehubPos; |
113 | Vector3 nvec = Util.GetNormalizedVector(point - m_Scene.RegionInfo.RegionSettings.TelehubPos); | 113 | Quaternion thRot = m_Scene.RegionInfo.RegionSettings.TelehubRot; |
114 | |||
115 | float dist = (float) Util.GetDistanceTo(thPos, point); | ||
116 | Vector3 nvec = Util.GetNormalizedVector(point - thPos); | ||
114 | Vector3 spoint = nvec * dist; | 117 | Vector3 spoint = nvec * dist; |
115 | 118 | ||
116 | m_Scene.RegionInfo.RegionSettings.AddSpawnPoint(spoint); | 119 | m_Scene.RegionInfo.RegionSettings.AddSpawnPoint(spoint); |
117 | m_Scene.RegionInfo.RegionSettings.Save(); | 120 | m_Scene.RegionInfo.RegionSettings.Save(); |
118 | result = true; | 121 | result = true; |