* How tall are you? Certainly not 127 meters!

0.6.0-stable
Teravus Ovares 2008-06-06 14:33:01 +00:00
parent 37373dbde2
commit e099d5b013
1 changed files with 9 additions and 2 deletions

View File

@ -592,9 +592,16 @@ namespace OpenSim.Region.Environment.Scenes
// Name, UUID, m_scene.RegionInfo.RegionName);
m_isChildAgent = false;
float localAVHeight = 1.56f;
if (m_avHeight != 127.0f)
{
localAVHeight = m_avHeight;
}
float posZLimit = (float)m_scene.GetLandHeight((int)pos.X, (int)pos.Y);
float newPosZ = posZLimit + m_avHeight;
if (posZLimit >= (pos.Z -(m_avHeight/2)) && !(Single.IsInfinity(newPosZ) || Single.IsNaN(newPosZ)))
float newPosZ = posZLimit + localAVHeight;
if (posZLimit >= (pos.Z - (localAVHeight / 2)) && !(Single.IsInfinity(newPosZ) || Single.IsNaN(newPosZ)))
{
pos.Z = newPosZ;
}