Переглянути джерело

Reinsert code to extract size_x and size_y parameters from GetHomeRegion response in UserAgentServiceConnector.

This is actually code from commits afb2e07 and cf61cdf
For as yet unexplained reasons, the section of these commits which changed UserAgentServiceConnector.cs disappeared from its history between approx Feb 5 2014 and Feb 13 2014.
This ought to be impossible.  More details to follow in opensim-dev mailing list
Justin Clark-Casey (justincc) 10 роки тому
батько
коміт
2fbb906ff6

+ 12 - 0
OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs

@@ -257,6 +257,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"];