Make the new API return only the regions that are marked online

slimupdates
Melanie 2010-01-10 02:07:10 +00:00
parent 7403f2fd36
commit 21de921b95
1 changed files with 8 additions and 2 deletions

View File

@ -299,7 +299,10 @@ namespace OpenSim.Services.GridService
List<RegionData> regions = m_Database.GetDefaultRegions(scopeID);
foreach (RegionData r in regions)
{
if ((Convert.ToInt32(r.Data["flags"]) & (int)OpenSim.Data.RegionFlags.RegionOnline) != 0)
ret.Add(RegionData2RegionInfo(r));
}
return ret;
}
@ -311,7 +314,10 @@ namespace OpenSim.Services.GridService
List<RegionData> regions = m_Database.GetFallbackRegions(scopeID, x, y);
foreach (RegionData r in regions)
{
if ((Convert.ToInt32(r.Data["flags"]) & (int)OpenSim.Data.RegionFlags.RegionOnline) != 0)
ret.Add(RegionData2RegionInfo(r));
}
return ret;
}