Fixes problem where "Adult" regions were reported as being of type "Unknown".

This commit is contained in:
Kevin Cozens
2010-07-06 17:36:47 -04:00
committed by Diva Canto
parent 020ed93418
commit 68f0ab9504

View File

@@ -258,21 +258,16 @@ namespace OpenSim.Region.DataSnapshot
private String GetRegionCategory(Scene scene)
{
//Boolean choice between:
// "PG" - Mormontown
// "Mature" - Sodom and Gomorrah
if (scene.RegionInfo.RegionSettings.Maturity == 1)
{
return "Mature";
}
else if (scene.RegionInfo.RegionSettings.Maturity == 0)
{
if (scene.RegionInfo.RegionSettings.Maturity == 2)
return "Adult";
if (scene.RegionInfo.RegionSettings.Maturity == 0)
return "PG";
}
else
{
return "Unknown";
}
return "Unknown";
}
private XmlNode GetGridSnapshotData(XmlDocument factory)