diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index aca3ea5..316d39d 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -208,7 +208,10 @@ namespace OpenSim.Region.ClientStack.Linden | |||
208 | m_log.Error("[CAPS]: GetDisplayNames disabled because user management component not found"); | 208 | m_log.Error("[CAPS]: GetDisplayNames disabled because user management component not found"); |
209 | 209 | ||
210 | UserAccount account = m_userAccountService.GetUserAccount(m_Scene.RegionInfo.ScopeID, m_AgentID); | 210 | UserAccount account = m_userAccountService.GetUserAccount(m_Scene.RegionInfo.ScopeID, m_AgentID); |
211 | m_scopeID = account.ScopeID; | 211 | if (account == null) // Hypergrid? |
212 | m_scopeID = m_Scene.RegionInfo.ScopeID; | ||
213 | else | ||
214 | m_scopeID = account.ScopeID; | ||
212 | 215 | ||
213 | RegisterHandlers(); | 216 | RegisterHandlers(); |
214 | 217 | ||
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index 15294c3..ad1c473 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, |