aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorMelanie Thielker2010-08-07 05:45:52 +0200
committerMelanie Thielker2010-08-07 05:45:52 +0200
commitc554de75010a442753cce29ee06d2b60d7b4701a (patch)
tree10714d66217de4a3fd77373407586bf041f1869c /OpenSim/Framework/Util.cs
parentChange the (hackish) constant to match the changed enum for attachs (diff)
downloadopensim-SC_OLD-c554de75010a442753cce29ee06d2b60d7b4701a.zip
opensim-SC_OLD-c554de75010a442753cce29ee06d2b60d7b4701a.tar.gz
opensim-SC_OLD-c554de75010a442753cce29ee06d2b60d7b4701a.tar.bz2
opensim-SC_OLD-c554de75010a442753cce29ee06d2b60d7b4701a.tar.xz
Correct display of landmark about info. Also correct region maturity rating
in LM info. Maturity is NOT the parcel's setting, that is only for the image and text. Parcel maturity is governed by region maturity.
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}