diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 0fd2934..3ae51e4 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -299,7 +299,10 @@ namespace OpenSim.Services.GridService | |||
299 | List<RegionData> regions = m_Database.GetDefaultRegions(scopeID); | 299 | List<RegionData> regions = m_Database.GetDefaultRegions(scopeID); |
300 | 300 | ||
301 | foreach (RegionData r in regions) | 301 | foreach (RegionData r in regions) |
302 | ret.Add(RegionData2RegionInfo(r)); | 302 | { |
303 | if ((Convert.ToInt32(r.Data["flags"]) & (int)OpenSim.Data.RegionFlags.RegionOnline) != 0) | ||
304 | ret.Add(RegionData2RegionInfo(r)); | ||
305 | } | ||
303 | 306 | ||
304 | return ret; | 307 | return ret; |
305 | } | 308 | } |
@@ -311,7 +314,10 @@ namespace OpenSim.Services.GridService | |||
311 | List<RegionData> regions = m_Database.GetFallbackRegions(scopeID, x, y); | 314 | List<RegionData> regions = m_Database.GetFallbackRegions(scopeID, x, y); |
312 | 315 | ||
313 | foreach (RegionData r in regions) | 316 | foreach (RegionData r in regions) |
314 | ret.Add(RegionData2RegionInfo(r)); | 317 | { |
318 | if ((Convert.ToInt32(r.Data["flags"]) & (int)OpenSim.Data.RegionFlags.RegionOnline) != 0) | ||
319 | ret.Add(RegionData2RegionInfo(r)); | ||
320 | } | ||
315 | 321 | ||
316 | return ret; | 322 | return ret; |
317 | } | 323 | } |