mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Reverting last commit.. because it just made it worse.
This commit is contained in:
@@ -200,10 +200,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||
else if (move.Z < 0f)
|
||||
{
|
||||
if (actor != null && actor.IsColliding)
|
||||
{
|
||||
//Console.WriteLine("LAND");
|
||||
return "LAND";
|
||||
}
|
||||
else
|
||||
return "HOVER_DOWN";
|
||||
}
|
||||
@@ -252,10 +249,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||
float landElapsed = (float)(Environment.TickCount - m_animTickFall) / 1000f;
|
||||
|
||||
if (landElapsed <= FALL_DELAY)
|
||||
{
|
||||
m_animTickFall = 0;
|
||||
return "LAND";
|
||||
}
|
||||
}
|
||||
|
||||
m_animTickFall = 0;
|
||||
|
||||
@@ -1445,10 +1445,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// nesting this check because LengthSquared() is expensive and we don't
|
||||
// want to do it every step when flying.
|
||||
if ((Velocity.LengthSquared() <= LAND_VELOCITYMAG_MAX))
|
||||
{
|
||||
StopFlying();
|
||||
m_physicsActor.Flying = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user