aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-02-25 23:04:38 +0000
committerJustin Clark-Casey (justincc)2013-02-25 23:04:38 +0000
commitd0cb4fc3262df2afe2ef34396c7960f7afee6b89 (patch)
tree2037829f95d30302b82536dc10cf5985a2b5df59 /OpenSim/Region/Framework/Scenes/Scene.cs
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-d0cb4fc3262df2afe2ef34396c7960f7afee6b89.zip
opensim-SC_OLD-d0cb4fc3262df2afe2ef34396c7960f7afee6b89.tar.gz
opensim-SC_OLD-d0cb4fc3262df2afe2ef34396c7960f7afee6b89.tar.bz2
opensim-SC_OLD-d0cb4fc3262df2afe2ef34396c7960f7afee6b89.tar.xz
Move map related settings from [Startup] to a new [Map] section in OpenSim.ini
Existing map settings in [Startup] will continue to work, and if present will override anything in [Map] However, the proper place for such settings would now be [Map] This is to reduce the use of [Startup] as a bag for non-generic settings which should really go in sections, in common with other settings. This commit also extends Diva's previous work to allow a default setting to be given when looking at multiple sections for settings.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs11
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))