aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/HypergridLinker.cs
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-24 18:57:55 +0300
committerOren Hurvitz2014-04-24 16:58:16 +0100
commit463d0b2f8f0cd5f02c14391b763680b23c16e438 (patch)
treeb2b08789253c6acdb3b4bde4e1c76fb24de2672c /OpenSim/Services/GridService/HypergridLinker.cs
parent- Created a standard function to send XML-RPC requests, which logs them like ... (diff)
downloadopensim-SC-463d0b2f8f0cd5f02c14391b763680b23c16e438.zip
opensim-SC-463d0b2f8f0cd5f02c14391b763680b23c16e438.tar.gz
opensim-SC-463d0b2f8f0cd5f02c14391b763680b23c16e438.tar.bz2
opensim-SC-463d0b2f8f0cd5f02c14391b763680b23c16e438.tar.xz
When linking a Hypergrid region, set the region's flags on the in-memory GridRegion immediately.
(When using llTeleportAgent() this *specific* object is used for the teleport, so it should have the correct flags.)
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/GridService/HypergridLinker.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs
index bf52660..8a60264 100644
--- a/OpenSim/Services/GridService/HypergridLinker.cs
+++ b/OpenSim/Services/GridService/HypergridLinker.cs
@@ -68,10 +68,6 @@ namespace OpenSim.Services.GridService
68 protected string m_ThisGatekeeper = string.Empty; 68 protected string m_ThisGatekeeper = string.Empty;
69 protected Uri m_ThisGatekeeperURI = null; 69 protected Uri m_ThisGatekeeperURI = null;
70 70
71 // Hyperlink regions are hyperlinks on the map
72 public readonly Dictionary<UUID, GridRegion> m_HyperlinkRegions = new Dictionary<UUID, GridRegion>();
73 protected Dictionary<UUID, ulong> m_HyperlinkHandles = new Dictionary<UUID, ulong>();
74
75 protected GridRegion m_DefaultRegion; 71 protected GridRegion m_DefaultRegion;
76 protected GridRegion DefaultRegion 72 protected GridRegion DefaultRegion
77 { 73 {
@@ -409,7 +405,7 @@ namespace OpenSim.Services.GridService
409 // Store the origin's coordinates somewhere 405 // Store the origin's coordinates somewhere
410 regInfo.RegionSecret = handle.ToString(); 406 regInfo.RegionSecret = handle.ToString();
411 407
412 AddHyperlinkRegion(regInfo, handle); 408 AddHyperlinkRegion(ref regInfo, handle);
413 m_log.InfoFormat("[HYPERGRID LINKER]: Successfully linked to region {0} with image {1}", regInfo.RegionName, regInfo.TerrainImage); 409 m_log.InfoFormat("[HYPERGRID LINKER]: Successfully linked to region {0} with image {1}", regInfo.RegionName, regInfo.TerrainImage);
414 return true; 410 return true;
415 } 411 }
@@ -489,11 +485,11 @@ namespace OpenSim.Services.GridService
489// return true; 485// return true;
490// } 486// }
491 487
492 private void AddHyperlinkRegion(GridRegion regionInfo, ulong regionHandle) 488 private void AddHyperlinkRegion(ref GridRegion regionInfo, ulong regionHandle)
493 { 489 {
494 RegionData rdata = m_GridService.RegionInfo2RegionData(regionInfo); 490 RegionData rdata = m_GridService.RegionInfo2RegionData(regionInfo);
495 int flags = (int)OpenSim.Framework.RegionFlags.Hyperlink + (int)OpenSim.Framework.RegionFlags.NoDirectLogin + (int)OpenSim.Framework.RegionFlags.RegionOnline; 491 regionInfo.Flags = OpenSim.Framework.RegionFlags.Hyperlink | OpenSim.Framework.RegionFlags.NoDirectLogin | OpenSim.Framework.RegionFlags.RegionOnline;
496 rdata.Data["flags"] = flags.ToString(); 492 rdata.Data["flags"] = ((int)regionInfo.Flags).ToString();
497 493
498 m_Database.Store(rdata); 494 m_Database.Store(rdata);
499 } 495 }