iar_mods
BlueWall 2012-01-23 10:28:18 -05:00
parent 39c9b656c8
commit 9cfc43005d
1 changed files with 6 additions and 3 deletions

View File

@ -109,8 +109,11 @@ namespace OpenSim.Region.CoreModules.World.Estate
try try
{ {
float dist = (float) Util.GetDistanceTo(m_Scene.RegionInfo.RegionSettings.TelehubPos, point); Vector3 thPos = m_Scene.RegionInfo.RegionSettings.TelehubPos;
Vector3 nvec = Util.GetNormalizedVector(point - m_Scene.RegionInfo.RegionSettings.TelehubPos); Quaternion thRot = m_Scene.RegionInfo.RegionSettings.TelehubRot;
float dist = (float) Util.GetDistanceTo(thPos, point);
Vector3 nvec = Util.GetNormalizedVector(point - thPos);
Vector3 spoint = nvec * dist; Vector3 spoint = nvec * dist;
m_Scene.RegionInfo.RegionSettings.AddSpawnPoint(spoint); m_Scene.RegionInfo.RegionSettings.AddSpawnPoint(spoint);