aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorCharles Krinke2009-05-12 03:30:37 +0000
committerCharles Krinke2009-05-12 03:30:37 +0000
commitc1d680b6c3a5e3dc11cd1e7cc9b74d3d81317eee (patch)
treeff2c7eb3d841bceb24dc01fa4d8e8c5261f33a5e /OpenSim/Framework/Util.cs
parentChanges to the new user system to add the modularity developed for the asset (diff)
downloadopensim-SC_OLD-c1d680b6c3a5e3dc11cd1e7cc9b74d3d81317eee.zip
opensim-SC_OLD-c1d680b6c3a5e3dc11cd1e7cc9b74d3d81317eee.tar.gz
opensim-SC_OLD-c1d680b6c3a5e3dc11cd1e7cc9b74d3d81317eee.tar.bz2
opensim-SC_OLD-c1d680b6c3a5e3dc11cd1e7cc9b74d3d81317eee.tar.xz
Thank you kindly, Patnad, for a patch that:
This is to handle the changes in the v1.23 viewer of LL regarding the adult rating. With this patch a region can be changed to the adult rating from LL viewer v1.23 and above.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Util.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index cad259d..35efa02 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -1045,5 +1045,29 @@ namespace OpenSim.Framework
1045 1045
1046 return guid; 1046 return guid;
1047 } 1047 }
1048
1049 public static byte ConvertMaturityToAccessLevel(uint maturity)
1050 {
1051 byte retVal = 0;
1052 switch (maturity)
1053 {
1054 case 0: //PG
1055 retVal = 13;
1056 break;
1057 case 1: //Mature
1058 retVal = 21;
1059 break;
1060 case 2: // Adult
1061 retVal = 42;
1062 break;
1063 }
1064
1065 return retVal;
1066
1067 }
1068
1069
1070
1071
1048 } 1072 }
1049} 1073}