diff options
author | Diva Canto | 2013-02-25 16:28:12 -0800 |
---|---|---|
committer | Diva Canto | 2013-02-25 16:28:12 -0800 |
commit | a356978c794c4a5b0bac4d6a05bf8534885edc68 (patch) | |
tree | 6b670d7e458aab7feff4d804a14c3a47e04d91f9 /OpenSim/Region/Framework/Scenes | |
parent | Mantis #6552 -- stricter error (crash) if server URL is malformed. (diff) | |
parent | Move map related settings from [Startup] to a new [Map] section in OpenSim.ini (diff) | |
download | opensim-SC-a356978c794c4a5b0bac4d6a05bf8534885edc68.zip opensim-SC-a356978c794c4a5b0bac4d6a05bf8534885edc68.tar.gz opensim-SC-a356978c794c4a5b0bac4d6a05bf8534885edc68.tar.bz2 opensim-SC-a356978c794c4a5b0bac4d6a05bf8534885edc68.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-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)) |