make HGworldmap initialize its base wordmap

0.9.1.0-post-fixes
UbitUmarov 2019-08-15 17:59:57 +01:00
parent 002ef3cd89
commit 12abb3ffe4
1 changed files with 9 additions and 1 deletions

View File

@ -58,8 +58,9 @@ namespace OpenSim.Region.CoreModules.Hypergrid
public override void Initialise(IConfigSource source) public override void Initialise(IConfigSource source)
{ {
string[] configSections = new string[] { "Map", "Startup" };
if (Util.GetConfigVarFromSections<string>( if (Util.GetConfigVarFromSections<string>(
source, "WorldMapModule", new string[] { "Map", "Startup" }, "WorldMap") == "HGWorldMap") source, "WorldMapModule", configSections, "WorldMap") == "HGWorldMap")
{ {
m_Enabled = true; m_Enabled = true;
@ -72,7 +73,14 @@ namespace OpenSim.Region.CoreModules.Hypergrid
m_MapImageServerURL = m_MapImageServerURL + "/"; m_MapImageServerURL = m_MapImageServerURL + "/";
} }
expireBlackListTime = (double)Util.GetConfigVarFromSections<int>(source, "BlacklistTimeout", configSections, 10 * 60);
m_exportPrintScale =
Util.GetConfigVarFromSections<bool>(source, "ExportMapAddScale", configSections, m_exportPrintScale);
m_exportPrintRegionName =
Util.GetConfigVarFromSections<bool>(source, "ExportMapAddRegionName", configSections, m_exportPrintRegionName);
m_showNPCs =
Util.GetConfigVarFromSections<bool>(source, "ShowNPCs", configSections, m_showNPCs);
} }
} }