diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 9b17b7f..5b61538 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -897,7 +897,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
897 | 897 | ||
898 | m_strictAccessControl = startupConfig.GetBoolean("StrictAccessControl", m_strictAccessControl); | 898 | m_strictAccessControl = startupConfig.GetBoolean("StrictAccessControl", m_strictAccessControl); |
899 | 899 | ||
900 | m_generateMaptiles = startupConfig.GetBoolean("GenerateMaptiles", true); | 900 | string[] possibleMapConfigSections = new string[] { "Map", "Startup" }; |
901 | |||
902 | m_generateMaptiles | ||
903 | = Util.GetConfigVarFromSections<bool>(config, "GenerateMaptiles", possibleMapConfigSections, true); | ||
904 | |||
901 | if (m_generateMaptiles) | 905 | if (m_generateMaptiles) |
902 | { | 906 | { |
903 | int maptileRefresh = startupConfig.GetInt("MaptileRefresh", 0); | 907 | int maptileRefresh = startupConfig.GetInt("MaptileRefresh", 0); |
@@ -911,7 +915,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
911 | } | 915 | } |
912 | else | 916 | else |
913 | { | 917 | { |
914 | string tile = startupConfig.GetString("MaptileStaticUUID", UUID.Zero.ToString()); | 918 | string tile |
919 | = Util.GetConfigVarFromSections<string>( | ||
920 | config, "MaptileStaticUUID", possibleMapConfigSections, UUID.Zero.ToString()); | ||
921 | |||
915 | UUID tileID; | 922 | UUID tileID; |
916 | 923 | ||
917 | if (tile != UUID.Zero.ToString() && UUID.TryParse(tile, out tileID)) | 924 | if (tile != UUID.Zero.ToString() && UUID.TryParse(tile, out tileID)) |