aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirland.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpaneldirland.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirland.cpp b/linden/indra/newview/llpaneldirland.cpp
index 3c8e5cc..df8dfc2 100644
--- a/linden/indra/newview/llpaneldirland.cpp
+++ b/linden/indra/newview/llpaneldirland.cpp
@@ -75,7 +75,7 @@ BOOL LLPanelDirLand::postBuild()
75 75
76 childSetValue("type", gSavedSettings.getString("FindLandType")); 76 childSetValue("type", gSavedSettings.getString("FindLandType"));
77 77
78 if (gAgent.mAccess <= SIM_ACCESS_PG) 78 if (gAgent.isTeen())
79 { 79 {
80 childSetValue("rating", PG_ONLY); 80 childSetValue("rating", PG_ONLY);
81 childDisable("rating"); 81 childDisable("rating");
@@ -156,7 +156,7 @@ void LLPanelDirLand::performQuery()
156 } 156 }
157 157
158 U32 query_flags = 0x0; 158 U32 query_flags = 0x0;
159 if (gAgent.mAccess <= SIM_ACCESS_PG) query_flags |= DFQ_PG_SIMS_ONLY; 159 if (gAgent.isTeen()) query_flags |= DFQ_PG_SIMS_ONLY;
160 160
161 const std::string& rating = childGetValue("rating").asString(); 161 const std::string& rating = childGetValue("rating").asString();
162 if (rating == PG_ONLY) 162 if (rating == PG_ONLY)