diff options
author | Justin Clark-Casey (justincc) | 2011-08-03 02:04:38 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-03 02:04:38 +0100 |
commit | 30e816bfa2fe3145a43723dfea6c4765551f5e04 (patch) | |
tree | 7d07cc16a16eeda8dd59fb5036e84c40ca90e7d4 /OpenSim/Region/Framework/Scenes/Animation | |
parent | get autopilot/go here to work immediately. (diff) | |
download | opensim-SC-30e816bfa2fe3145a43723dfea6c4765551f5e04.zip opensim-SC-30e816bfa2fe3145a43723dfea6c4765551f5e04.tar.gz opensim-SC-30e816bfa2fe3145a43723dfea6c4765551f5e04.tar.bz2 opensim-SC-30e816bfa2fe3145a43723dfea6c4765551f5e04.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Animation')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs index 4865481..1334230 100644 --- a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs +++ b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs | |||
@@ -295,7 +295,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation | |||
295 | if (move.X != 0f || move.Y != 0f) | 295 | if (move.X != 0f || move.Y != 0f) |
296 | { | 296 | { |
297 | // Walking / crouchwalking / running | 297 | // Walking / crouchwalking / running |
298 | if (move.Z < 0f) | 298 | if (move.Z < 0) |
299 | return "CROUCHWALK"; | 299 | return "CROUCHWALK"; |
300 | else if (m_scenePresence.SetAlwaysRun) | 300 | else if (m_scenePresence.SetAlwaysRun) |
301 | return "RUN"; | 301 | return "RUN"; |
@@ -305,7 +305,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation | |||
305 | else | 305 | else |
306 | { | 306 | { |
307 | // Not walking | 307 | // Not walking |
308 | if (move.Z < 0f) | 308 | if (move.Z < 0) |
309 | return "CROUCH"; | 309 | return "CROUCH"; |
310 | else | 310 | else |
311 | return "STAND"; | 311 | return "STAND"; |