aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-24 21:48:55 +0000
committerMelanie Thielker2008-09-24 21:48:55 +0000
commitc009da350831de012247ad2686f6bf878aa4b76a (patch)
treeb4196e095b2f2c9abcdf5194463073963d516bfc
parentlight mysql user tests (diff)
downloadopensim-SC_OLD-c009da350831de012247ad2686f6bf878aa4b76a.zip
opensim-SC_OLD-c009da350831de012247ad2686f6bf878aa4b76a.tar.gz
opensim-SC_OLD-c009da350831de012247ad2686f6bf878aa4b76a.tar.bz2
opensim-SC_OLD-c009da350831de012247ad2686f6bf878aa4b76a.tar.xz
Add WorldMapModule = "name" to OpenSim.ini. Default is "WorldMap".
-rw-r--r--OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs
index ec9b79c..a5ca2be 100644
--- a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs
@@ -60,6 +60,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
60 private List<MapBlockData> cachedMapBlocks = new List<MapBlockData>(); 60 private List<MapBlockData> cachedMapBlocks = new List<MapBlockData>();
61 private int cachedTime = 0; 61 private int cachedTime = 0;
62 private byte[] myMapImageJPEG; 62 private byte[] myMapImageJPEG;
63 private bool m_Enabled = false;
63 64
64 //private int CacheRegionsDistance = 256; 65 //private int CacheRegionsDistance = 256;
65 66
@@ -67,6 +68,14 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
67 68
68 public void Initialise(Scene scene, IConfigSource config) 69 public void Initialise(Scene scene, IConfigSource config)
69 { 70 {
71 IConfig startupConfig = config.Configs["Startup"];
72 if (startupConfig.GetString("worldMapModule", "WorldMap") ==
73 "WorldMap")
74 m_Enabled = true;
75
76 if (!m_Enabled)
77 return;
78
70 myMapImageJPEG = new byte[0]; 79 myMapImageJPEG = new byte[0];
71 80
72 m_scene = scene; 81 m_scene = scene;