summaryrefslogtreecommitdiff
path: root/indra/newview/llagentcamera.cpp
diff options
context:
space:
mode:
authorGraham Linden <none@none>2014-07-31 08:40:57 -0700
committerGraham Linden <none@none>2014-07-31 08:40:57 -0700
commitdb43a0560c259623a1a8022668f8482d82cae9c8 (patch)
tree31e532720212ed1697897d6c2694fe991cb8f812 /indra/newview/llagentcamera.cpp
parent76e7f978c157f9921593ea0e43f642cb9de4703d (diff)
parent532433674c9553636af9ea8d433b9da6d6fae587 (diff)
Merge viewer-release
Diffstat (limited to 'indra/newview/llagentcamera.cpp')
-rwxr-xr-xindra/newview/llagentcamera.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp
index d1dfbe3315..7b0496ea45 100755
--- a/indra/newview/llagentcamera.cpp
+++ b/indra/newview/llagentcamera.cpp
@@ -913,6 +913,8 @@ void LLAgentCamera::cameraZoomIn(const F32 fraction)
F32 max_distance = llmin(mDrawDistance - DIST_FUDGE,
LLWorld::getInstance()->getRegionWidthInMeters() - DIST_FUDGE );
+ max_distance = llmin(max_distance, current_distance * 4.f); //Scaled max relative to current distance. MAINT-3154
+
if (new_distance > max_distance)
{
new_distance = max_distance;