diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 6839a4f..8ec5d98 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -1424,14 +1424,33 @@ bool idle_startup() | |||
1424 | } | 1424 | } |
1425 | gSavedSettings.setBOOL("RememberPassword", remember_password); | 1425 | gSavedSettings.setBOOL("RememberPassword", remember_password); |
1426 | 1426 | ||
1427 | text = LLUserAuth::getInstance()->getResponse("agent_access"); | 1427 | // This fixes Imprudence 1.2 thinking it's a teen. |
1428 | if(!text.empty() && (text[0] == 'M')) | 1428 | // Will need updating for the 1.23 merge. |
1429 | // this is their actual ability to access content | ||
1430 | text = LLUserAuth::getInstance()->getResponse("agent_access_max"); | ||
1431 | if (!text.empty()) | ||
1429 | { | 1432 | { |
1430 | gAgent.setTeen(false); | 1433 | // agent_access can be 'A', 'M', and 'PG'. |
1434 | if (text[0] == 'PG') | ||
1435 | { | ||
1436 | gAgent.setTeen(true); | ||
1437 | } | ||
1438 | else | ||
1439 | { | ||
1440 | gAgent.setTeen(false); | ||
1441 | } | ||
1431 | } | 1442 | } |
1432 | else | 1443 | else // we're on an older sim version (prolly an opensim) |
1433 | { | 1444 | { |
1434 | gAgent.setTeen(true); | 1445 | text = LLUserAuth::getInstance()->getResponse("agent_access"); |
1446 | if(!text.empty() && (text[0] == 'M')) | ||
1447 | { | ||
1448 | gAgent.setTeen(false); | ||
1449 | } | ||
1450 | else | ||
1451 | { | ||
1452 | gAgent.setTeen(true); | ||
1453 | } | ||
1435 | } | 1454 | } |
1436 | 1455 | ||
1437 | text = LLUserAuth::getInstance()->getResponse("start_location"); | 1456 | text = LLUserAuth::getInstance()->getResponse("start_location"); |