diff options
author | Jacek Antonelli | 2009-10-03 04:25:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-10-03 04:25:50 -0500 |
commit | 0a6d84a05ad59d613092b6fd87fc84099df0d160 (patch) | |
tree | 1e64e2657f764c9c2a015a70d8c1a6d67afc722a /linden/indra/newview/llagent.cpp | |
parent | Imprudence 1.2.0 beta released. (diff) | |
parent | Fixed switched Buy and Create locations in object pie menu (regression) (diff) | |
download | meta-impy-0a6d84a05ad59d613092b6fd87fc84099df0d160.zip meta-impy-0a6d84a05ad59d613092b6fd87fc84099df0d160.tar.gz meta-impy-0a6d84a05ad59d613092b6fd87fc84099df0d160.tar.bz2 meta-impy-0a6d84a05ad59d613092b6fd87fc84099df0d160.tar.xz |
Merge remote branch 'mccabe/next' into next
Diffstat (limited to 'linden/indra/newview/llagent.cpp')
-rw-r--r-- | linden/indra/newview/llagent.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp index edcb82c..e6438f4 100644 --- a/linden/indra/newview/llagent.cpp +++ b/linden/indra/newview/llagent.cpp | |||
@@ -4894,6 +4894,32 @@ void LLAgent::setTeen(bool teen) | |||
4894 | } | 4894 | } |
4895 | } | 4895 | } |
4896 | 4896 | ||
4897 | //static | ||
4898 | void LLAgent::convertTextToMaturity(char text) // HACK: remove when based on 1.23 | ||
4899 | { | ||
4900 | if ('A' == text) | ||
4901 | { | ||
4902 | mAccess = SIM_ACCESS_ADULT; | ||
4903 | //return SIM_ACCESS_ADULT; | ||
4904 | } | ||
4905 | else if ('M'== text) | ||
4906 | { | ||
4907 | mAccess = SIM_ACCESS_MATURE; | ||
4908 | //return SIM_ACCESS_MATURE; | ||
4909 | } | ||
4910 | else if ('P'== text) | ||
4911 | { | ||
4912 | mAccess = SIM_ACCESS_PG; | ||
4913 | //return SIM_ACCESS_PG; | ||
4914 | } | ||
4915 | else | ||
4916 | { | ||
4917 | mAccess = SIM_ACCESS_MIN; | ||
4918 | //return SIM_ACCESS_MIN; | ||
4919 | } | ||
4920 | gSavedSettings.setU32("PreferredMaturity", mAccess); | ||
4921 | } | ||
4922 | |||
4897 | void LLAgent::buildFullname(std::string& name) const | 4923 | void LLAgent::buildFullname(std::string& name) const |
4898 | { | 4924 | { |
4899 | if (mAvatarObject) | 4925 | if (mAvatarObject) |