summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-10-23 07:53:45 -0400
committerOz Linden <oz@lindenlab.com>2011-10-23 07:53:45 -0400
commit7534c4efefec53548cb8e2f232c7269cfa8c9e06 (patch)
tree9ca5d24fa2204e66ec174960f6c9f1e1f9781c7a /indra
parent8d410326c937a375fa0eb7855678e590499a79d2 (diff)
storm-1663: allow wider range of pitch, make range the same for sitting and otherwise
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llagent.cpp13
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))
{