diff options
author | Diva Canto | 2010-07-07 02:40:51 -0700 |
---|---|---|
committer | Diva Canto | 2010-07-07 02:40:51 -0700 |
commit | 32cfdb0f6a3d48ce36c322dd0ccc942586f710be (patch) | |
tree | 5a3736b8cc0e2d74ee1b957f78c8971133e81bf4 /OpenSim/Region | |
parent | Fixes problem where "Adult" regions were reported as being of type "Unknown". (diff) | |
download | opensim-SC_OLD-32cfdb0f6a3d48ce36c322dd0ccc942586f710be.zip opensim-SC_OLD-32cfdb0f6a3d48ce36c322dd0ccc942586f710be.tar.gz opensim-SC_OLD-32cfdb0f6a3d48ce36c322dd0ccc942586f710be.tar.bz2 opensim-SC_OLD-32cfdb0f6a3d48ce36c322dd0ccc942586f710be.tar.xz |
Switched order of conditionals.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/DataSnapshot/SnapshotStore.cs | 6 |
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 | ||