* Fixed situation where sometimes your avatar tries to land and gets 'put' 80 meters into the air immediately.
parent
960b7e93b1
commit
f0b149dfc1
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue