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

0.7-release
Kevin Cozens 2010-07-06 17:36:47 -04:00 committed by Diva Canto
parent 020ed93418
commit 68f0ab9504
1 changed files with 7 additions and 12 deletions

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)