mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user