aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie2019-08-07 18:45:04 +0100
committerMelanie2019-08-07 18:45:04 +0100
commitc80926192ae12e60be9d833408e6860bce2006f7 (patch)
treeba18784603e37c6df8b4e63eb6e97de94ed50bc8 /OpenSim/Region
parentRemove debug output i left in (diff)
downloadopensim-SC-c80926192ae12e60be9d833408e6860bce2006f7.zip
opensim-SC-c80926192ae12e60be9d833408e6860bce2006f7.tar.gz
opensim-SC-c80926192ae12e60be9d833408e6860bce2006f7.tar.bz2
opensim-SC-c80926192ae12e60be9d833408e6860bce2006f7.tar.xz
Make showing NPCs on the world map an option
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index 15294c3..bc49153 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -95,6 +95,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
95 95
96 private bool m_exportPrintScale = false; // prints the scale of map in meters on exported map 96 private bool m_exportPrintScale = false; // prints the scale of map in meters on exported map
97 private bool m_exportPrintRegionName = false; // prints the region name exported map 97 private bool m_exportPrintRegionName = false; // prints the region name exported map
98 private bool m_showNPCs = true;
98 99
99 #region INonSharedRegionModule Members 100 #region INonSharedRegionModule Members
100 public virtual void Initialise(IConfigSource config) 101 public virtual void Initialise(IConfigSource config)
@@ -111,6 +112,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
111 Util.GetConfigVarFromSections<bool>(config, "ExportMapAddScale", configSections, m_exportPrintScale); 112 Util.GetConfigVarFromSections<bool>(config, "ExportMapAddScale", configSections, m_exportPrintScale);
112 m_exportPrintRegionName = 113 m_exportPrintRegionName =
113 Util.GetConfigVarFromSections<bool>(config, "ExportMapAddRegionName", configSections, m_exportPrintRegionName); 114 Util.GetConfigVarFromSections<bool>(config, "ExportMapAddRegionName", configSections, m_exportPrintRegionName);
115 m_showNPCs =
116 Util.GetConfigVarFromSections<bool>(config, "ShowNPCs", configSections, m_showNPCs);
114 } 117 }
115 118
116 public virtual void AddRegion(Scene scene) 119 public virtual void AddRegion(Scene scene)
@@ -501,9 +504,12 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
501 { 504 {
502 m_scene.ForEachRootScenePresence(delegate (ScenePresence sp) 505 m_scene.ForEachRootScenePresence(delegate (ScenePresence sp)
503 { 506 {
504 // Don't send a green dot for yourself 507 // Don't send a green dot for yourself
505 if (sp.UUID != remoteClient.AgentId) 508 if (sp.UUID != remoteClient.AgentId)
506 { 509 {
510 if (sp.PresenceType == PresenceType.NPC && !m_showNPCs)
511 return;
512
507 mapitem = new mapItemReply( 513 mapitem = new mapItemReply(
508 xstart + (uint)sp.AbsolutePosition.X, 514 xstart + (uint)sp.AbsolutePosition.X,
509 ystart + (uint)sp.AbsolutePosition.Y, 515 ystart + (uint)sp.AbsolutePosition.Y,