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

prebuild-update
Kevin Cozens 2010-07-06 17:36:47 -04:00 committed by Diva Canto
parent 657056a73f
commit 07559707c5
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)