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

@@ -994,6 +994,10 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
{
Scene scene = agent.Scene;
Vector3 pos = agent.AbsolutePosition;
// m_log.DebugFormat(
// "[ENTITY TRANSFER MODULE]: Crossing agent {0} at pos {1} in {2}", agent.Name, pos, scene.Name);
Vector3 newpos = new Vector3(pos.X, pos.Y, pos.Z);
uint neighbourx = scene.RegionInfo.RegionLocX;
uint neighboury = scene.RegionInfo.RegionLocY;