Implement move to/autopilot for z axis movement as well.

This is jerky (an artifact of the way it's being done, I think), but it's better than on implementation.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-03 02:04:38 +01:00
parent 0c23764ce2
commit 30e816bfa2
2 changed files with 40 additions and 17 deletions

View File

@@ -295,7 +295,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
if (move.X != 0f || move.Y != 0f)
{
// Walking / crouchwalking / running
if (move.Z < 0f)
if (move.Z < 0)
return "CROUCHWALK";
else if (m_scenePresence.SetAlwaysRun)
return "RUN";
@@ -305,7 +305,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
else
{
// Not walking
if (move.Z < 0f)
if (move.Z < 0)
return "CROUCH";
else
return "STAND";