diff options
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) |