diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 0fd2934982..3ae51e404b 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs @@ -299,7 +299,10 @@ namespace OpenSim.Services.GridService List regions = m_Database.GetDefaultRegions(scopeID); foreach (RegionData r in regions) - ret.Add(RegionData2RegionInfo(r)); + { + 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 regions = m_Database.GetFallbackRegions(scopeID, x, y); foreach (RegionData r in regions) - ret.Add(RegionData2RegionInfo(r)); + { + if ((Convert.ToInt32(r.Data["flags"]) & (int)OpenSim.Data.RegionFlags.RegionOnline) != 0) + ret.Add(RegionData2RegionInfo(r)); + } return ret; }