Don't try to write region size and MapfileStaticFile Nini settings that are not set up when invoking the RemoteAdmin create region facility.
Changes by MarcelEdward from http://opensimulator.org/mantis/view.php?id=7497. Thanks.inv-download
parent
441d77b5b6
commit
caa0e2a732
|
@ -823,12 +823,14 @@ namespace OpenSim.Framework
|
||||||
string location = String.Format("{0},{1}", RegionLocX, RegionLocY);
|
string location = String.Format("{0},{1}", RegionLocX, RegionLocY);
|
||||||
config.Set("Location", location);
|
config.Set("Location", location);
|
||||||
|
|
||||||
if (RegionSizeX != Constants.RegionSize || RegionSizeY != Constants.RegionSize)
|
if (RegionSizeX > 0)
|
||||||
{
|
|
||||||
config.Set("SizeX", RegionSizeX);
|
config.Set("SizeX", RegionSizeX);
|
||||||
|
|
||||||
|
if (RegionSizeY > 0)
|
||||||
config.Set("SizeY", RegionSizeY);
|
config.Set("SizeY", RegionSizeY);
|
||||||
|
|
||||||
|
// if (RegionSizeZ > 0)
|
||||||
// config.Set("SizeZ", RegionSizeZ);
|
// config.Set("SizeZ", RegionSizeZ);
|
||||||
}
|
|
||||||
|
|
||||||
config.Set("InternalAddress", m_internalEndPoint.Address.ToString());
|
config.Set("InternalAddress", m_internalEndPoint.Address.ToString());
|
||||||
config.Set("InternalPort", m_internalEndPoint.Port);
|
config.Set("InternalPort", m_internalEndPoint.Port);
|
||||||
|
@ -872,7 +874,7 @@ namespace OpenSim.Framework
|
||||||
if (m_maptileStaticUUID != UUID.Zero)
|
if (m_maptileStaticUUID != UUID.Zero)
|
||||||
config.Set("MaptileStaticUUID", m_maptileStaticUUID.ToString());
|
config.Set("MaptileStaticUUID", m_maptileStaticUUID.ToString());
|
||||||
|
|
||||||
if (MaptileStaticFile != String.Empty)
|
if (MaptileStaticFile != null && MaptileStaticFile != String.Empty)
|
||||||
config.Set("MaptileStaticFile", MaptileStaticFile);
|
config.Set("MaptileStaticFile", MaptileStaticFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue