diff options
Diffstat (limited to 'OpenSim/Services/GridService/HypergridLinker.cs')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index 4f5fe59..3c7295a 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -63,7 +63,6 @@ namespace OpenSim.Services.GridService | |||
63 | protected GatekeeperServiceConnector m_GatekeeperConnector; | 63 | protected GatekeeperServiceConnector m_GatekeeperConnector; |
64 | 64 | ||
65 | protected UUID m_ScopeID = UUID.Zero; | 65 | protected UUID m_ScopeID = UUID.Zero; |
66 | // protected bool m_Check4096 = true; | ||
67 | protected string m_MapTileDirectory = string.Empty; | 66 | protected string m_MapTileDirectory = string.Empty; |
68 | protected string m_ThisGatekeeperURI = string.Empty; | 67 | protected string m_ThisGatekeeperURI = string.Empty; |
69 | protected string m_ThisGatekeeperHost = string.Empty; | 68 | protected string m_ThisGatekeeperHost = string.Empty; |
@@ -93,8 +92,6 @@ namespace OpenSim.Services.GridService | |||
93 | if (scope != string.Empty) | 92 | if (scope != string.Empty) |
94 | UUID.TryParse(scope, out m_ScopeID); | 93 | UUID.TryParse(scope, out m_ScopeID); |
95 | 94 | ||
96 | // m_Check4096 = gridConfig.GetBoolean("Check4096", true); | ||
97 | |||
98 | //// TODO OpenSim is crazy, this is called from Robust and OpenSim, Robust needs the ../caches bit, OpenSim somehow adds a path already. I can't tell why. So strip the path. | 95 | //// TODO OpenSim is crazy, this is called from Robust and OpenSim, Robust needs the ../caches bit, OpenSim somehow adds a path already. I can't tell why. So strip the path. |
99 | m_MapTileDirectory = Path.Combine(Util.cacheDir(), Path.GetFileName(gridConfig.GetString("MapTileDirectory", "maptiles"))); | 96 | m_MapTileDirectory = Path.Combine(Util.cacheDir(), Path.GetFileName(gridConfig.GetString("MapTileDirectory", "maptiles"))); |
100 | 97 | ||
@@ -305,19 +302,6 @@ namespace OpenSim.Services.GridService | |||
305 | return true; | 302 | return true; |
306 | } | 303 | } |
307 | 304 | ||
308 | // We are now performing this check for each individual teleport in the EntityTransferModule instead. This | ||
309 | // allows us to give better feedback when teleports fail because of the distance reason (which can't be | ||
310 | // done here) and it also hypergrid teleports that are within range (possibly because the source grid | ||
311 | // itself has regions that are very far apart). | ||
312 | // uint x, y; | ||
313 | // if (m_Check4096 && !Check4096(handle, out x, out y)) | ||
314 | // { | ||
315 | // //RemoveHyperlinkRegion(regInfo.RegionID); | ||
316 | // reason = "Region is too far (" + x + ", " + y + ")"; | ||
317 | // m_log.Info("[HYPERGRID LINKER]: Unable to link, region is too far (" + x + ", " + y + ")"); | ||
318 | // //return false; | ||
319 | // } | ||
320 | |||
321 | regInfo.RegionID = regionID; | 305 | regInfo.RegionID = regionID; |
322 | regInfo.RegionSizeX = sizeX; | 306 | regInfo.RegionSizeX = sizeX; |
323 | regInfo.RegionSizeY = sizeY; | 307 | regInfo.RegionSizeY = sizeY; |
@@ -370,52 +354,6 @@ namespace OpenSim.Services.GridService | |||
370 | } | 354 | } |
371 | } | 355 | } |
372 | 356 | ||
373 | // Not currently used | ||
374 | // /// <summary> | ||
375 | // /// Cope with this viewer limitation. | ||
376 | // /// </summary> | ||
377 | // /// <param name="regInfo"></param> | ||
378 | // /// <returns></returns> | ||
379 | // public bool Check4096(ulong realHandle, out uint x, out uint y) | ||
380 | // { | ||
381 | // uint ux = 0, uy = 0; | ||
382 | // Utils.LongToUInts(realHandle, out ux, out uy); | ||
383 | // x = Util.WorldToRegionLoc(ux); | ||
384 | // y = Util.WorldToRegionLoc(uy); | ||
385 | // | ||
386 | // const uint limit = Util.RegionToWorldLoc(4096 - 1); | ||
387 | // uint xmin = ux - limit; | ||
388 | // uint xmax = ux + limit; | ||
389 | // uint ymin = uy - limit; | ||
390 | // uint ymax = uy + limit; | ||
391 | // // World map boundary checks | ||
392 | // if (xmin < 0 || xmin > ux) | ||
393 | // xmin = 0; | ||
394 | // if (xmax > int.MaxValue || xmax < ux) | ||
395 | // xmax = int.MaxValue; | ||
396 | // if (ymin < 0 || ymin > uy) | ||
397 | // ymin = 0; | ||
398 | // if (ymax > int.MaxValue || ymax < uy) | ||
399 | // ymax = int.MaxValue; | ||
400 | // | ||
401 | // // Check for any regions that are within the possible teleport range to the linked region | ||
402 | // List<GridRegion> regions = m_GridService.GetRegionRange(m_ScopeID, (int)xmin, (int)xmax, (int)ymin, (int)ymax); | ||
403 | // if (regions.Count == 0) | ||
404 | // { | ||
405 | // return false; | ||
406 | // } | ||
407 | // else | ||
408 | // { | ||
409 | // // Check for regions which are not linked regions | ||
410 | // List<GridRegion> hyperlinks = m_GridService.GetHyperlinks(m_ScopeID); | ||
411 | // IEnumerable<GridRegion> availableRegions = regions.Except(hyperlinks); | ||
412 | // if (availableRegions.Count() == 0) | ||
413 | // return false; | ||
414 | // } | ||
415 | // | ||
416 | // return true; | ||
417 | // } | ||
418 | |||
419 | private void AddHyperlinkRegion(GridRegion regionInfo, ulong regionHandle) | 357 | private void AddHyperlinkRegion(GridRegion regionInfo, ulong regionHandle) |
420 | { | 358 | { |
421 | RegionData rdata = m_GridService.RegionInfo2RegionData(regionInfo); | 359 | RegionData rdata = m_GridService.RegionInfo2RegionData(regionInfo); |