aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorBlueWall2012-01-23 10:28:18 -0500
committerBlueWall2012-01-23 10:28:18 -0500
commit9cfc43005d8d906083b176a2961aa3892193dcb4 (patch)
tree1c338441121aedc68f6069093eb815eb6e6566b2 /OpenSim
parentCleanup unused parts, add some error handling (diff)
downloadopensim-SC_OLD-9cfc43005d8d906083b176a2961aa3892193dcb4.zip
opensim-SC_OLD-9cfc43005d8d906083b176a2961aa3892193dcb4.tar.gz
opensim-SC_OLD-9cfc43005d8d906083b176a2961aa3892193dcb4.tar.bz2
opensim-SC_OLD-9cfc43005d8d906083b176a2961aa3892193dcb4.tar.xz
Cleanup
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Estate/TelehubManager.cs9
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;