diff options
Diffstat (limited to 'linden/indra/newview/llpaneldirplaces.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldirplaces.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirplaces.cpp b/linden/indra/newview/llpaneldirplaces.cpp index 5802992..6ba8652 100644 --- a/linden/indra/newview/llpaneldirplaces.cpp +++ b/linden/indra/newview/llpaneldirplaces.cpp | |||
@@ -89,7 +89,7 @@ LLPanelDirPlaces::~LLPanelDirPlaces() | |||
89 | void LLPanelDirPlaces::draw() | 89 | void LLPanelDirPlaces::draw() |
90 | { | 90 | { |
91 | // You only have a choice if you are mature | 91 | // You only have a choice if you are mature |
92 | childSetVisible("incmature", gAgent.mAccess >= SIM_ACCESS_MATURE); | 92 | childSetVisible("incmature", !gAgent.isTeen()); |
93 | childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureSims")); | 93 | childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureSims")); |
94 | 94 | ||
95 | LLPanelDirBrowser::draw(); | 95 | LLPanelDirBrowser::draw(); |
@@ -118,7 +118,7 @@ void LLPanelDirPlaces::performQuery() | |||
118 | } | 118 | } |
119 | 119 | ||
120 | BOOL pg_only = !gSavedSettings.getBOOL("ShowMatureSims") | 120 | BOOL pg_only = !gSavedSettings.getBOOL("ShowMatureSims") |
121 | || gAgent.mAccess <= SIM_ACCESS_PG; | 121 | || gAgent.isTeen(); |
122 | 122 | ||
123 | queryCore(name, category, pg_only); | 123 | queryCore(name, category, pg_only); |
124 | } | 124 | } |