Merge commit '178b8d0926a53d82f54d60c088f36c7bad13dc87' into bigmerge

avinationmerge
Melanie 2011-10-25 02:56:40 +01:00
commit 752b744105
1 changed files with 13 additions and 1 deletions

View File

@ -30,6 +30,7 @@ using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using System.Threading; using System.Threading;
using log4net; using log4net;
using OpenMetaverse;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.RegionLoader.Filesystem; using OpenSim.Framework.RegionLoader.Filesystem;
using OpenSim.Framework.RegionLoader.Web; using OpenSim.Framework.RegionLoader.Web;
@ -152,9 +153,20 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
/// <returns>True if we're sane, false if we're insane</returns> /// <returns>True if we're sane, false if we're insane</returns>
private bool CheckRegionsForSanity(RegionInfo[] regions) private bool CheckRegionsForSanity(RegionInfo[] regions)
{ {
if (regions.Length <= 1) if (regions.Length == 0)
return true; return true;
foreach (RegionInfo region in regions)
{
if (region.RegionID == UUID.Zero)
{
m_log.ErrorFormat(
"[LOAD REGIONS PLUGIN]: Region {0} has invalidate zero UUID <{1}>",
region.RegionName, region.RegionID);
return false;
}
}
for (int i = 0; i < regions.Length - 1; i++) for (int i = 0; i < regions.Length - 1; i++)
{ {
for (int j = i + 1; j < regions.Length; j++) for (int j = i + 1; j < regions.Length; j++)