aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2012-06-28 20:29:37 +0200
committerMelanie2012-06-28 20:29:37 +0200
commit8a03c153d52302ec83342e93f67c99afd9de31ac (patch)
treef36bc4a81d9d49d03e0fbc4fb3440d5273f9cb94 /OpenSim
parentComment out a spammy message that will spew 4 lines for each request to a (diff)
downloadopensim-SC-8a03c153d52302ec83342e93f67c99afd9de31ac.zip
opensim-SC-8a03c153d52302ec83342e93f67c99afd9de31ac.tar.gz
opensim-SC-8a03c153d52302ec83342e93f67c99afd9de31ac.tar.bz2
opensim-SC-8a03c153d52302ec83342e93f67c99afd9de31ac.tar.xz
Return NPC instead of AGENT in the detect parameters for touch, collision and
sensor.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Helpers.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
index 7e7e278..5c9d30f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
@@ -197,6 +197,8 @@ namespace OpenSim.Region.ScriptEngine.Shared
197 presence.Velocity.Z); 197 presence.Velocity.Z);
198 198
199 Type = 0x01; // Avatar 199 Type = 0x01; // Avatar
200 if (presence.PresenceType == PresenceType.Npc)
201 Type = 0x20;
200 if (presence.Velocity != Vector3.Zero) 202 if (presence.Velocity != Vector3.Zero)
201 Type |= 0x02; // Active 203 Type |= 0x02; // Active
202 204