aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2010-07-07 02:40:51 -0700
committerDiva Canto2010-07-07 02:42:48 -0700
commitf5d589896491e9e8e1d0938053f51fa5188a5493 (patch)
tree7285ca195a218c46a9a27f70775336134bd56c78
parentFixes problem where "Adult" regions were reported as being of type "Unknown". (diff)
downloadopensim-SC_OLD-f5d589896491e9e8e1d0938053f51fa5188a5493.zip
opensim-SC_OLD-f5d589896491e9e8e1d0938053f51fa5188a5493.tar.gz
opensim-SC_OLD-f5d589896491e9e8e1d0938053f51fa5188a5493.tar.bz2
opensim-SC_OLD-f5d589896491e9e8e1d0938053f51fa5188a5493.tar.xz
Switched order of conditionals.
-rw-r--r--OpenSim/Region/DataSnapshot/SnapshotStore.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/DataSnapshot/SnapshotStore.cs b/OpenSim/Region/DataSnapshot/SnapshotStore.cs
index f356b43..70cb205 100644
--- a/OpenSim/Region/DataSnapshot/SnapshotStore.cs
+++ b/OpenSim/Region/DataSnapshot/SnapshotStore.cs
@@ -258,15 +258,15 @@ namespace OpenSim.Region.DataSnapshot
258 258
259 private String GetRegionCategory(Scene scene) 259 private String GetRegionCategory(Scene scene)
260 { 260 {
261 if (scene.RegionInfo.RegionSettings.Maturity == 0)
262 return "PG";
263
261 if (scene.RegionInfo.RegionSettings.Maturity == 1) 264 if (scene.RegionInfo.RegionSettings.Maturity == 1)
262 return "Mature"; 265 return "Mature";
263 266
264 if (scene.RegionInfo.RegionSettings.Maturity == 2) 267 if (scene.RegionInfo.RegionSettings.Maturity == 2)
265 return "Adult"; 268 return "Adult";
266 269
267 if (scene.RegionInfo.RegionSettings.Maturity == 0)
268 return "PG";
269
270 return "Unknown"; 270 return "Unknown";
271 } 271 }
272 272