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
0.8.0.3
Justin Clark-Casey (justincc) 2014-03-26 02:34:22 +00:00
parent 62a03a5cac
commit 2fbb906ff6
1 changed files with 12 additions and 0 deletions

View File

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