dont allow regions to be register on map area reserved for HG links

melanie
UbitUmarov 2016-12-16 21:15:21 +00:00
parent 9b9f93c4b2
commit aa9a56d4df
1 changed files with 4 additions and 1 deletions

View File

@ -197,6 +197,9 @@ namespace OpenSim.Services.GridService
if (regionInfos.RegionID == UUID.Zero) if (regionInfos.RegionID == UUID.Zero)
return "Invalid RegionID - cannot be zero UUID"; return "Invalid RegionID - cannot be zero UUID";
if (regionInfos.RegionLocY <= Constants.MaximumRegionSize)
return "Region location reserved for HG links coord Y must be higher than " + (Constants.MaximumRegionSize/256).ToString();
String reason = "Region overlaps another region"; String reason = "Region overlaps another region";
List<RegionData> rdatas = m_Database.Get( List<RegionData> rdatas = m_Database.Get(
@ -290,7 +293,7 @@ namespace OpenSim.Services.GridService
// Region reregistering in other coordinates. Delete the old entry // Region reregistering in other coordinates. Delete the old entry
m_log.DebugFormat("[GRID SERVICE]: Region {0} ({1}) was previously registered at {2}-{3}. Deleting old entry.", m_log.DebugFormat("[GRID SERVICE]: Region {0} ({1}) was previously registered at {2}-{3}. Deleting old entry.",
regionInfos.RegionName, regionInfos.RegionID, regionInfos.RegionLocX, regionInfos.RegionLocY); regionInfos.RegionName, regionInfos.RegionID, regionInfos.RegionCoordX, regionInfos.RegionCoordY);
try try
{ {