Add "show borders" command to show the borders of a region.

This is relevant to mega-regions where the borders are very different to a regular region.
Also adds some method doc and other code comments.
This commit is contained in:
Justin Clark-Casey (justincc)
2013-03-23 00:39:03 +00:00
parent c4d9a23f26
commit 93206ef0fa
6 changed files with 54 additions and 11 deletions

View File

@@ -415,18 +415,17 @@ namespace OpenSim.Region.RegionCombinerModule
*/
#endregion
// If we're one region over +x y
// If we're one region over +x y (i.e. root region is to the west)
//xxx
//xxy
//xxx
if (rootConn.PosX + rootConn.XEnd >= newConn.PosX && rootConn.PosY >= newConn.PosY)
{
connectedYN = DoWorkForOneRegionOverPlusXY(rootConn, newConn, scene);
break;
}
// If we're one region over x +y
// If we're one region over x +y (i.e. root region is to the south)
//xyx
//xxx
//xxx
@@ -436,7 +435,7 @@ namespace OpenSim.Region.RegionCombinerModule
break;
}
// If we're one region over +x +y
// If we're one region over +x +y (i.e. root region is to the south-west)
//xxy
//xxx
//xxx
@@ -646,7 +645,6 @@ namespace OpenSim.Region.RegionCombinerModule
{
if (rootConn.RegionScene.EastBorders.Count == 1)// && conn.RegionScene.EastBorders.Count == 2)
{
rootConn.RegionScene.EastBorders[0].BorderLine.Z += (int)Constants.RegionSize;
lock (rootConn.RegionScene.NorthBorders)