Add a module selection option for the MapImage Module as well

This commit is contained in:
Melanie Thielker
2008-09-24 22:24:10 +00:00
parent 1d7095fbce
commit 9131ba23e1
2 changed files with 7 additions and 0 deletions

View File

@@ -134,6 +134,12 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
{
m_scene = scene;
m_config = source;
IConfig startupConfig = m_config.Configs["Startup"];
if (startupConfig.GetString("MapImageModule", "MapImageModule") !=
"MapImageModule")
return;
m_scene.RegisterModuleInterface<IMapImageGenerator>(this);
}