From 002ef3cd89daa5f4ab7ca0e9d5d76d55cb7f5163 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 13 Aug 2019 23:06:26 +0100 Subject: [PATCH] mantis 8575: npc map dots could be sent on another spot --- OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index ad1c473bf5..be9a8802fd 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs @@ -634,6 +634,9 @@ namespace OpenSim.Region.CoreModules.World.WorldMap // Don't send a green dot for yourself if (sp.UUID != remoteClient.AgentId) { + if (!m_showNPCs && sp.PresenceType == PresenceType.Npc) + return; + mapitem = new mapItemReply( xstart + (uint)sp.AbsolutePosition.X, ystart + (uint)sp.AbsolutePosition.Y,