aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
index ac1c1a9..dddf913 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
@@ -468,12 +468,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
468 toRegionPos = presence.AbsolutePosition; 468 toRegionPos = presence.AbsolutePosition;
469 dis = Math.Abs(Util.GetDistanceTo(toRegionPos, fromRegionPos)); 469 dis = Math.Abs(Util.GetDistanceTo(toRegionPos, fromRegionPos));
470 470
471 if (presence.PresenceType == PresenceType.Npc && npcModule != null) 471 // Disabled for now since all osNpc* methods check for appropriate ownership permission.
472 { 472 // Perhaps could be re-enabled as an NPC setting at some point since being able to make NPCs not
473 UUID npcOwner = npcModule.GetOwner(presence.UUID); 473 // sensed might be useful.
474 if (npcOwner != UUID.Zero && npcOwner != SensePoint.OwnerID) 474// if (presence.PresenceType == PresenceType.Npc && npcModule != null)
475 return; 475// {
476 } 476// UUID npcOwner = npcModule.GetOwner(presence.UUID);
477// if (npcOwner != UUID.Zero && npcOwner != SensePoint.OwnerID)
478// return;
479// }
477 480
478 // are they in range 481 // are they in range
479 if (dis <= ts.range) 482 if (dis <= ts.range)