diff options
author | Melanie | 2012-01-12 23:22:55 +0000 |
---|---|---|
committer | Melanie | 2012-01-12 23:22:55 +0000 |
commit | cf166d3f1e7f18819623473b9c323489f23b82cd (patch) | |
tree | d4a68d9d5efe9c175b0e0cbf5fd75f5e3f8fe18f /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Add api level test for removing an owned npc (diff) | |
download | opensim-SC-cf166d3f1e7f18819623473b9c323489f23b82cd.zip opensim-SC-cf166d3f1e7f18819623473b9c323489f23b82cd.tar.gz opensim-SC-cf166d3f1e7f18819623473b9c323489f23b82cd.tar.bz2 opensim-SC-cf166d3f1e7f18819623473b9c323489f23b82cd.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | 15 |
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) |