* Fixed situation where sometimes your avatar tries to land and gets 'put' 80 meters into the air immediately.

afrisby
Teravus Ovares 2008-01-04 04:09:18 +00:00
parent 960b7e93b1
commit f0b149dfc1
1 changed files with 8 additions and 1 deletions

View File

@ -553,7 +553,14 @@ namespace OpenSim.Region.Environment.Scenes
// Add 1/6 the avatar's height to it's position so it doesn't shoot into the air
// when the avatar stands up
AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (m_avHeight/6));
if (m_avHeight != 127.0f)
{
AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (m_avHeight / 6));
}
else
{
AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (1.56f / 6));
}
SetMovementAnimation(Animations.AnimsLLUUID["LAND"], 2);
SendFullUpdateToAllClients();
}