From 674a3a5639cf34532113352e0b72e7a6ba7563a2 Mon Sep 17 00:00:00 2001 From: Mic Bowman Date: Thu, 23 Jan 2014 16:20:18 -0800 Subject: Enable the simulator to handle region size information returned from a hypergrid gatekeeper. Fields are "size_x" and "size_y". Server side will be updated separately. --- .../Connectors/Hypergrid/GatekeeperServiceConnector.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs index c9c6c31..5d7dcfd 100644 --- a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs @@ -255,6 +255,18 @@ namespace OpenSim.Services.Connectors.Hypergrid region.RegionLocY = n; //m_log.Debug(">> HERE, y: " + region.RegionLocY); } + if (hash["size_x"] != null) + { + Int32.TryParse((string)hash["size_x"], out n); + region.RegionSizeX = n; + //m_log.Debug(">> HERE, x: " + region.RegionLocX); + } + if (hash["size_y"] != null) + { + Int32.TryParse((string)hash["size_y"], out n); + region.RegionSizeY = n; + //m_log.Debug(">> HERE, y: " + region.RegionLocY); + } if (hash["region_name"] != null) { region.RegionName = (string)hash["region_name"]; -- cgit v1.1