diff options
author | Melanie Thielker | 2010-08-07 05:45:52 +0200 |
---|---|---|
committer | Melanie | 2010-08-07 05:33:49 +0100 |
commit | 00fd2e0446382af1a3581c8feec359cad5b939aa (patch) | |
tree | 9ace6b554885a4771862967bf928bb59965e0312 /OpenSim/Framework | |
parent | Change the (hackish) constant to match the changed enum for attachs (diff) | |
download | opensim-SC_OLD-00fd2e0446382af1a3581c8feec359cad5b939aa.zip opensim-SC_OLD-00fd2e0446382af1a3581c8feec359cad5b939aa.tar.gz opensim-SC_OLD-00fd2e0446382af1a3581c8feec359cad5b939aa.tar.bz2 opensim-SC_OLD-00fd2e0446382af1a3581c8feec359cad5b939aa.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 802cb37..b5d025f 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 | } |