aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 3aa9583..a8042d4 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -553,7 +553,14 @@ namespace OpenSim.Region.Environment.Scenes
553 // Add 1/6 the avatar's height to it's position so it doesn't shoot into the air 553 // Add 1/6 the avatar's height to it's position so it doesn't shoot into the air
554 // when the avatar stands up 554 // when the avatar stands up
555 555
556 AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (m_avHeight/6)); 556 if (m_avHeight != 127.0f)
557 {
558 AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (m_avHeight / 6));
559 }
560 else
561 {
562 AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (1.56f / 6));
563 }
557 SetMovementAnimation(Animations.AnimsLLUUID["LAND"], 2); 564 SetMovementAnimation(Animations.AnimsLLUUID["LAND"], 2);
558 SendFullUpdateToAllClients(); 565 SendFullUpdateToAllClients();
559 } 566 }