aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerregion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerregion.cpp')
-rw-r--r--linden/indra/newview/llviewerregion.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerregion.cpp b/linden/indra/newview/llviewerregion.cpp
index 1c527e0..0ba0879 100644
--- a/linden/indra/newview/llviewerregion.cpp
+++ b/linden/indra/newview/llviewerregion.cpp
@@ -542,6 +542,7 @@ std::string LLViewerRegion::regionFlagsToString(U32 flags)
542const char* SIM_ACCESS_STR[] = { "Free Trial", 542const char* SIM_ACCESS_STR[] = { "Free Trial",
543 "PG", 543 "PG",
544 "Mature", 544 "Mature",
545 "Adult",
545 "Offline", 546 "Offline",
546 "Unknown" }; 547 "Unknown" };
547 548
@@ -559,12 +560,15 @@ std::string LLViewerRegion::accessToString(U8 sim_access)
559 case SIM_ACCESS_MATURE: 560 case SIM_ACCESS_MATURE:
560 return SIM_ACCESS_STR[2]; 561 return SIM_ACCESS_STR[2];
561 562
562 case SIM_ACCESS_DOWN: 563 case SIM_ACCESS_ADULT:
563 return SIM_ACCESS_STR[3]; 564 return SIM_ACCESS_STR[3];
564 565
566 case SIM_ACCESS_DOWN:
567 return SIM_ACCESS_STR[4];
568
565 case SIM_ACCESS_MIN: 569 case SIM_ACCESS_MIN:
566 default: 570 default:
567 return SIM_ACCESS_STR[4]; 571 return SIM_ACCESS_STR[5];
568 } 572 }
569} 573}
570 574
@@ -584,6 +588,10 @@ U8 LLViewerRegion::stringToAccess(const std::string& access_str)
584 { 588 {
585 sim_access = SIM_ACCESS_MATURE; 589 sim_access = SIM_ACCESS_MATURE;
586 } 590 }
591 else if (access_str == SIM_ACCESS_STR[3])
592 {
593 sim_access = SIM_ACCESS_ADULT;
594 }
587 return sim_access; 595 return sim_access;
588} 596}
589 597
@@ -601,6 +609,9 @@ std::string LLViewerRegion::accessToShortString(U8 sim_access)
601 case SIM_ACCESS_MATURE: 609 case SIM_ACCESS_MATURE:
602 return "M"; 610 return "M";
603 611
612 case SIM_ACCESS_ADULT:
613 return "A";
614
604 case SIM_ACCESS_MIN: 615 case SIM_ACCESS_MIN:
605 default: 616 default:
606 return "U"; 617 return "U";
@@ -1419,6 +1430,7 @@ void LLViewerRegion::setSeedCapability(const std::string& url)
1419 capabilityNames.append("SendUserReportWithScreenshot"); 1430 capabilityNames.append("SendUserReportWithScreenshot");
1420 capabilityNames.append("ServerReleaseNotes"); 1431 capabilityNames.append("ServerReleaseNotes");
1421 capabilityNames.append("StartGroupProposal"); 1432 capabilityNames.append("StartGroupProposal");
1433 capabilityNames.append("UpdateAgentInformation");
1422 capabilityNames.append("UpdateAgentLanguage"); 1434 capabilityNames.append("UpdateAgentLanguage");
1423 capabilityNames.append("UpdateGestureAgentInventory"); 1435 capabilityNames.append("UpdateGestureAgentInventory");
1424 capabilityNames.append("UpdateNotecardAgentInventory"); 1436 capabilityNames.append("UpdateNotecardAgentInventory");