mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
varregion: enable teleporting to a varregion by clicking on the map and
pressing the 'teleport' button. This commit adds returning region map info for all the subregions of a varregion. This also handles the selection of the extra region and then the displacement of the postion so the teleport is to the correct location.
This commit is contained in:
@@ -48,6 +48,7 @@ namespace OpenSim.Server.Handlers.Grid
|
||||
public class GridServerPostHandler : BaseStreamHandler
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private static string LogHeader = "[GRID HANDLER]";
|
||||
|
||||
private IGridService m_GridService;
|
||||
|
||||
@@ -281,8 +282,8 @@ namespace OpenSim.Server.Handlers.Grid
|
||||
else
|
||||
m_log.WarnFormat("[GRID HANDLER]: no Y in request to get region by position");
|
||||
|
||||
// m_log.DebugFormat("{0} GetRegionByPosition: loc=<{1},{2}>", LogHeader, x, y);
|
||||
GridRegion rinfo = m_GridService.GetRegionByPosition(scopeID, x, y);
|
||||
//m_log.DebugFormat("[GRID HANDLER]: neighbours for region {0}: {1}", regionID, rinfos.Count);
|
||||
|
||||
Dictionary<string, object> result = new Dictionary<string, object>();
|
||||
if (rinfo == null)
|
||||
|
||||
Reference in New Issue
Block a user