diff options
author | Oz Linden <oz@lindenlab.com> | 2012-06-21 14:19:25 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-06-21 14:19:25 -0400 |
commit | f64a79d9d14fe52dc9ac599bc9e4faf8009254ce (patch) | |
tree | d14ff8f9cf8bd723b8d479446f47eeb4211e8326 /indra/newview/llviewerregion.cpp | |
parent | ee130adc60dea8530f82d90107198ebcbd63fded (diff) | |
parent | 4539e5c8e93badc83e71045ba87ef81bf8740cab (diff) |
merge changes for DRTVWR-171
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rw-r--r-- | indra/newview/llviewerregion.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index e3cb985ddb..f3771e93d9 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -655,6 +655,31 @@ std::string LLViewerRegion::accessToShortString(U8 sim_access) } // static +U8 LLViewerRegion::shortStringToAccess(const std::string &sim_access) +{ + U8 accessValue; + + if (LLStringUtil::compareStrings(sim_access, "PG") == 0) + { + accessValue = SIM_ACCESS_PG; + } + else if (LLStringUtil::compareStrings(sim_access, "M") == 0) + { + accessValue = SIM_ACCESS_MATURE; + } + else if (LLStringUtil::compareStrings(sim_access, "A") == 0) + { + accessValue = SIM_ACCESS_ADULT; + } + else + { + accessValue = SIM_ACCESS_MIN; + } + + return accessValue; +} + +// static void LLViewerRegion::processRegionInfo(LLMessageSystem* msg, void**) { // send it to 'observers' |