Make the new API return only the regions that are marked online
parent
7403f2fd36
commit
21de921b95
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue