diff options
author | Chuck Linden <chuck@lindenlab.com> | 2010-02-17 18:47:12 -0500 |
---|---|---|
committer | Chuck Linden <chuck@lindenlab.com> | 2010-02-17 18:47:12 -0500 |
commit | 0aaaa06fe0149ffbc22823daa095749be1abe3e0 (patch) | |
tree | 895f584298f3b2d66fc25b86f97b7184910748bf /indra/newview/llstartup.cpp | |
parent | a3c93cccef04b3efc133ef653dbd9e53d7580aeb (diff) | |
parent | 29dd5afaa8a85f0b57ddb3e9e281e1e6f5b43e29 (diff) |
Automated merge with file:///Users/chuck/Documents/hg/viewer-hotfix
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r-- | indra/newview/llstartup.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 136989166f..fa07278cb9 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -2899,7 +2899,9 @@ bool process_login_success_response() text = response["agent_region_access"].asString(); if (!text.empty()) { - int preferredMaturity = LLAgent::convertTextToMaturity(text[0]); + U32 preferredMaturity = + llmin((U32)LLAgent::convertTextToMaturity(text[0]), + gSavedSettings.getU32("PreferredMaturity")); gSavedSettings.setU32("PreferredMaturity", preferredMaturity); } // During the AO transition, this flag will be true. Then the flag will |