diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-11-23 12:49:02 -0500 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-11-23 12:49:02 -0500 |
| commit | d7d779f8aa841b5550d4049dd65c097a3c267f3d (patch) | |
| tree | fa2e38f1eb82428c8e77a4aa2c3e1dcdf6295763 /indra/newview/llagent.cpp | |
| parent | 039417fc7dace6ba4b1f13de93f76b9749b26d41 (diff) | |
| parent | 3212b741663e3cb8608bb432623968c568e626b5 (diff) | |
merge changes for vmrg-190
Diffstat (limited to 'indra/newview/llagent.cpp')
| -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)) { |
