diff options
author | Oz Linden <oz@lindenlab.com> | 2011-11-21 09:13:09 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-11-21 09:13:09 -0500 |
commit | df3e044426e5f85c3e48115e71ac7445ef05b428 (patch) | |
tree | b0f8c2e55edb8547b356581f08fb81e3895ed9ea /indra | |
parent | 052d8a8f2eeb4501a62096e2565f377a03f6a609 (diff) | |
parent | 7534c4efefec53548cb8e2f232c7269cfa8c9e06 (diff) |
merge changes for storm-1663
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llagent.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index f8b204eca0..37bf856662 100755 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1101,20 +1101,11 @@ F32 LLAgent::clampPitchToLimits(F32 angle) LLVector3 skyward = getReferenceUpVector(); - F32 look_down_limit; - F32 look_up_limit = 10.f * DEG_TO_RAD; + const F32 look_down_limit = 179.f * DEG_TO_RAD;; + const F32 look_up_limit = 1.f * DEG_TO_RAD; F32 angle_from_skyward = acos( mFrameAgent.getAtAxis() * skyward ); - if (isAgentAvatarValid() && gAgentAvatarp->isSitting()) - { - look_down_limit = 130.f * DEG_TO_RAD; - } - else - { - look_down_limit = 170.f * DEG_TO_RAD; - } - // clamp pitch to limits if ((angle >= 0.f) && (angle_from_skyward + angle > look_down_limit)) { |