aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-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;