mantis 8575: npc map dots could be sent on another spot

0.9.1.0-post-fixes
UbitUmarov 2019-08-13 23:06:26 +01:00
parent 4812833435
commit 002ef3cd89
1 changed files with 3 additions and 0 deletions

View File

@ -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,