瀏覽代碼

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
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs

+ 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"];