aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Animation
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-03 02:04:38 +0100
committerJustin Clark-Casey (justincc)2011-08-03 02:04:38 +0100
commit30e816bfa2fe3145a43723dfea6c4765551f5e04 (patch)
tree7d07cc16a16eeda8dd59fb5036e84c40ca90e7d4 /OpenSim/Region/Framework/Scenes/Animation
parentget autopilot/go here to work immediately. (diff)
downloadopensim-SC_OLD-30e816bfa2fe3145a43723dfea6c4765551f5e04.zip
opensim-SC_OLD-30e816bfa2fe3145a43723dfea6c4765551f5e04.tar.gz
opensim-SC_OLD-30e816bfa2fe3145a43723dfea6c4765551f5e04.tar.bz2
opensim-SC_OLD-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.cs4
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";