Cleanup
parent
39c9b656c8
commit
9cfc43005d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue