Cleaned up ScenePresence parameters for Flying, WasFlying, FlyingOld and IsColliding

This commit is contained in:
Dan Lake
2011-12-12 02:43:38 -08:00
parent 3c55d2e776
commit c34ab0ee66
6 changed files with 57 additions and 50 deletions

View File

@@ -5573,9 +5573,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// note: this may need some tweaking when walking downhill. you "fall down" for a brief instant
// and don't collide when walking downhill, which instantly registers as in-air, briefly. should
// there be some minimum non-collision threshold time before claiming the avatar is in-air?
if ((flags & ScriptBaseClass.AGENT_WALKING) == 0 &&
agent.PhysicsActor != null &&
!agent.PhysicsActor.IsColliding)
if ((flags & ScriptBaseClass.AGENT_WALKING) == 0 && !agent.IsColliding )
{
flags |= ScriptBaseClass.AGENT_IN_AIR;
}