diff options
author | Melanie Thielker | 2010-08-07 05:45:52 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-08-07 05:45:52 +0200 |
commit | c554de75010a442753cce29ee06d2b60d7b4701a (patch) | |
tree | 10714d66217de4a3fd77373407586bf041f1869c /OpenSim/Framework/Util.cs | |
parent | Change the (hackish) constant to match the changed enum for attachs (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Framework/Util.cs | 12 |
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 | } |