aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirland.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:16 -0500
committerJacek Antonelli2008-08-15 23:45:16 -0500
commit3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch)
tree504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llpaneldirland.cpp
parentSecond Life viewer sources 1.18.4.3 (diff)
downloadmeta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz
Second Life viewer sources 1.18.5.0-RC
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)