aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authormeta72010-08-07 06:33:51 -0700
committermeta72010-08-07 06:33:51 -0700
commitbcb3b57f8dad06b2df1e84900da9a63253fa5a8e (patch)
treec081310d6b2c6ebf1636c52a91c6b02dd4b37acf /OpenSim/Framework/Util.cs
parentAdd a CHANGED_POSITION event so scripts don't have to run expensive loops to ... (diff)
parentand another one... (diff)
downloadopensim-SC-bcb3b57f8dad06b2df1e84900da9a63253fa5a8e.zip
opensim-SC-bcb3b57f8dad06b2df1e84900da9a63253fa5a8e.tar.gz
opensim-SC-bcb3b57f8dad06b2df1e84900da9a63253fa5a8e.tar.bz2
opensim-SC-bcb3b57f8dad06b2df1e84900da9a63253fa5a8e.tar.xz
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index c39fb6f..af5a0ce 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -1171,6 +1171,16 @@ namespace OpenSim.Framework
1171 1171
1172 } 1172 }
1173 1173
1174 public static uint ConvertAccessLevelToMaturity(byte maturity)
1175 {
1176 if (maturity <= 13)
1177 return 0;
1178 else if (maturity <= 21)
1179 return 1;
1180 else
1181 return 2;
1182 }
1183
1174 /// <summary> 1184 /// <summary>
1175 /// Produces an OSDMap from its string representation on a stream 1185 /// Produces an OSDMap from its string representation on a stream
1176 /// </summary> 1186 /// </summary>
@@ -1486,4 +1496,4 @@ namespace OpenSim.Framework
1486 } 1496 }
1487 1497
1488 } 1498 }
1489} \ No newline at end of file 1499}