diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index be9a880..e7b9cb5 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | |||
@@ -88,14 +88,14 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
88 | private List<UUID> m_rootAgents = new List<UUID>(); | 88 | private List<UUID> m_rootAgents = new List<UUID>(); |
89 | private volatile bool threadrunning = false; | 89 | private volatile bool threadrunning = false; |
90 | // expire time for the blacklists in seconds | 90 | // expire time for the blacklists in seconds |
91 | private double expireBlackListTime = 600.0; // 10 minutes | 91 | protected double expireBlackListTime = 600.0; // 10 minutes |
92 | // expire mapItems responses time in seconds. Throttles requests to regions that do answer | 92 | // expire mapItems responses time in seconds. Throttles requests to regions that do answer |
93 | private const double expireResponsesTime = 120.0; // 2 minutes ? | 93 | private const double expireResponsesTime = 120.0; // 2 minutes ? |
94 | //private int CacheRegionsDistance = 256; | 94 | //private int CacheRegionsDistance = 256; |
95 | 95 | ||
96 | private bool m_exportPrintScale = false; // prints the scale of map in meters on exported map | 96 | protected 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 | protected bool m_exportPrintRegionName = false; // prints the region name exported map |
98 | private bool m_showNPCs = true; | 98 | protected bool m_showNPCs = true; |
99 | 99 | ||
100 | #region INonSharedRegionModule Members | 100 | #region INonSharedRegionModule Members |
101 | public virtual void Initialise(IConfigSource config) | 101 | public virtual void Initialise(IConfigSource config) |
@@ -490,7 +490,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
490 | // Service 6 right now (MAP_ITEM_AGENTS_LOCATION; green dots) | 490 | // Service 6 right now (MAP_ITEM_AGENTS_LOCATION; green dots) |
491 | 491 | ||
492 | int tc = Environment.TickCount; | 492 | int tc = Environment.TickCount; |
493 | if (m_scene.GetRootAgentCount() <= 1) | 493 | if (m_scene.GetRootAgentCount() <= 1) //own position is not sent |
494 | { | 494 | { |
495 | mapitem = new mapItemReply( | 495 | mapitem = new mapItemReply( |
496 | xstart + 1, | 496 | xstart + 1, |
@@ -617,7 +617,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
617 | // Service 6 right now (MAP_ITEM_AGENTS_LOCATION; green dots) | 617 | // Service 6 right now (MAP_ITEM_AGENTS_LOCATION; green dots) |
618 | 618 | ||
619 | int tc = Environment.TickCount; | 619 | int tc = Environment.TickCount; |
620 | if (m_scene.GetRootAgentCount() <= 1) | 620 | if (m_scene.GetRootAgentCount() <= 1) // own is not sent |
621 | { | 621 | { |
622 | mapitem = new mapItemReply( | 622 | mapitem = new mapItemReply( |
623 | xstart + 1, | 623 | xstart + 1, |
@@ -1578,6 +1578,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
1578 | OSDArray responsearr = new OSDArray(); // Don't preallocate. MT (m_scene.GetRootAgentCount()); | 1578 | OSDArray responsearr = new OSDArray(); // Don't preallocate. MT (m_scene.GetRootAgentCount()); |
1579 | m_scene.ForEachRootScenePresence(delegate (ScenePresence sp) | 1579 | m_scene.ForEachRootScenePresence(delegate (ScenePresence sp) |
1580 | { | 1580 | { |
1581 | if (!m_showNPCs && sp.IsNPC) | ||
1582 | return; | ||
1581 | OSDMap responsemapdata = new OSDMap(); | 1583 | OSDMap responsemapdata = new OSDMap(); |
1582 | responsemapdata["X"] = OSD.FromInteger((int)(xstart + sp.AbsolutePosition.X)); | 1584 | responsemapdata["X"] = OSD.FromInteger((int)(xstart + sp.AbsolutePosition.X)); |
1583 | responsemapdata["Y"] = OSD.FromInteger((int)(ystart + sp.AbsolutePosition.Y)); | 1585 | responsemapdata["Y"] = OSD.FromInteger((int)(ystart + sp.AbsolutePosition.Y)); |