diff options
author | David Walter Seikel | 2016-11-03 22:15:40 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-11-03 22:15:40 +1000 |
commit | b56e2c65b88953ecb29c99d8fec8145a940f0c92 (patch) | |
tree | 808a36b4f70da400845ebc18a59e8139b866136f /OpenSim/Services/GridService | |
parent | MyISAM is still much better performing for OpenSim. (diff) | |
download | opensim-SC-b56e2c65b88953ecb29c99d8fec8145a940f0c92.zip opensim-SC-b56e2c65b88953ecb29c99d8fec8145a940f0c92.tar.gz opensim-SC-b56e2c65b88953ecb29c99d8fec8145a940f0c92.tar.bz2 opensim-SC-b56e2c65b88953ecb29c99d8fec8145a940f0c92.tar.xz |
No, we don't need to enshrine viewer bugs in the server, we need to fix the viewer, which is half done.
Less to delete this time.
Diffstat (limited to 'OpenSim/Services/GridService')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index 9d016fc..5aaba13 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_ThisGatekeeper = string.Empty; | 67 | protected string m_ThisGatekeeper = string.Empty; |
69 | protected Uri m_ThisGatekeeperURI = null; | 68 | protected Uri m_ThisGatekeeperURI = null; |
@@ -120,7 +119,6 @@ namespace OpenSim.Services.GridService | |||
120 | if (scope != string.Empty) | 119 | if (scope != string.Empty) |
121 | UUID.TryParse(scope, out m_ScopeID); | 120 | UUID.TryParse(scope, out m_ScopeID); |
122 | 121 | ||
123 | // m_Check4096 = gridConfig.GetBoolean("Check4096", true); | ||
124 | 122 | ||
125 | m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles"); | 123 | m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles"); |
126 | 124 | ||
@@ -385,19 +383,6 @@ namespace OpenSim.Services.GridService | |||
385 | return true; | 383 | return true; |
386 | } | 384 | } |
387 | 385 | ||
388 | // We are now performing this check for each individual teleport in the EntityTransferModule instead. This | ||
389 | // allows us to give better feedback when teleports fail because of the distance reason (which can't be | ||
390 | // done here) and it also hypergrid teleports that are within range (possibly because the source grid | ||
391 | // itself has regions that are very far apart). | ||
392 | // uint x, y; | ||
393 | // if (m_Check4096 && !Check4096(handle, out x, out y)) | ||
394 | // { | ||
395 | // //RemoveHyperlinkRegion(regInfo.RegionID); | ||
396 | // reason = "Region is too far (" + x + ", " + y + ")"; | ||
397 | // m_log.Info("[HYPERGRID LINKER]: Unable to link, region is too far (" + x + ", " + y + ")"); | ||
398 | // //return false; | ||
399 | // } | ||
400 | |||
401 | regInfo.RegionID = regionID; | 386 | regInfo.RegionID = regionID; |
402 | 387 | ||
403 | if (externalName == string.Empty) | 388 | if (externalName == string.Empty) |
@@ -448,52 +433,6 @@ namespace OpenSim.Services.GridService | |||
448 | } | 433 | } |
449 | } | 434 | } |
450 | 435 | ||
451 | // Not currently used | ||
452 | // /// <summary> | ||
453 | // /// Cope with this viewer limitation. | ||
454 | // /// </summary> | ||
455 | // /// <param name="regInfo"></param> | ||
456 | // /// <returns></returns> | ||
457 | // public bool Check4096(ulong realHandle, out uint x, out uint y) | ||
458 | // { | ||
459 | // uint ux = 0, uy = 0; | ||
460 | // Utils.LongToUInts(realHandle, out ux, out uy); | ||
461 | // x = Util.WorldToRegionLoc(ux); | ||
462 | // y = Util.WorldToRegionLoc(uy); | ||
463 | // | ||
464 | // const uint limit = Util.RegionToWorldLoc(4096 - 1); | ||
465 | // uint xmin = ux - limit; | ||
466 | // uint xmax = ux + limit; | ||
467 | // uint ymin = uy - limit; | ||
468 | // uint ymax = uy + limit; | ||
469 | // // World map boundary checks | ||
470 | // if (xmin < 0 || xmin > ux) | ||
471 | // xmin = 0; | ||
472 | // if (xmax > int.MaxValue || xmax < ux) | ||
473 | // xmax = int.MaxValue; | ||
474 | // if (ymin < 0 || ymin > uy) | ||
475 | // ymin = 0; | ||
476 | // if (ymax > int.MaxValue || ymax < uy) | ||
477 | // ymax = int.MaxValue; | ||
478 | // | ||
479 | // // Check for any regions that are within the possible teleport range to the linked region | ||
480 | // List<GridRegion> regions = m_GridService.GetRegionRange(m_ScopeID, (int)xmin, (int)xmax, (int)ymin, (int)ymax); | ||
481 | // if (regions.Count == 0) | ||
482 | // { | ||
483 | // return false; | ||
484 | // } | ||
485 | // else | ||
486 | // { | ||
487 | // // Check for regions which are not linked regions | ||
488 | // List<GridRegion> hyperlinks = m_GridService.GetHyperlinks(m_ScopeID); | ||
489 | // IEnumerable<GridRegion> availableRegions = regions.Except(hyperlinks); | ||
490 | // if (availableRegions.Count() == 0) | ||
491 | // return false; | ||
492 | // } | ||
493 | // | ||
494 | // return true; | ||
495 | // } | ||
496 | |||
497 | private void AddHyperlinkRegion(GridRegion regionInfo, ulong regionHandle) | 436 | private void AddHyperlinkRegion(GridRegion regionInfo, ulong regionHandle) |
498 | { | 437 | { |
499 | RegionData rdata = m_GridService.RegionInfo2RegionData(regionInfo); | 438 | RegionData rdata = m_GridService.RegionInfo2RegionData(regionInfo); |