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.
varregion
Mic Bowman 2014-01-23 16:20:18 -08:00
parent 4c362a83f9
commit 674a3a5639
1 changed files with 12 additions and 0 deletions

View File

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