From c009da350831de012247ad2686f6bf878aa4b76a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 24 Sep 2008 21:48:55 +0000 Subject: Add WorldMapModule = "name" to OpenSim.ini. Default is "WorldMap". --- .../Region/Environment/Modules/World/WorldMap/WorldMapModule.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim') 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 private List cachedMapBlocks = new List(); private int cachedTime = 0; private byte[] myMapImageJPEG; + private bool m_Enabled = false; //private int CacheRegionsDistance = 256; @@ -67,6 +68,14 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap public void Initialise(Scene scene, IConfigSource config) { + IConfig startupConfig = config.Configs["Startup"]; + if (startupConfig.GetString("worldMapModule", "WorldMap") == + "WorldMap") + m_Enabled = true; + + if (!m_Enabled) + return; + myMapImageJPEG = new byte[0]; m_scene = scene; -- cgit v1.1