diff options
author | UbitUmarov | 2017-06-26 20:51:16 +0100 |
---|---|---|
committer | UbitUmarov | 2017-06-26 20:51:40 +0100 |
commit | b319977a3f114442a0b8c93349f7d654745dc386 (patch) | |
tree | 6584d0f0a6418f48717b70088af8174c7415bd26 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |
parent | add osGetNPCList() (diff) | |
download | opensim-SC_OLD-b319977a3f114442a0b8c93349f7d654745dc386.zip opensim-SC_OLD-b319977a3f114442a0b8c93349f7d654745dc386.tar.gz opensim-SC_OLD-b319977a3f114442a0b8c93349f7d654745dc386.tar.bz2 opensim-SC_OLD-b319977a3f114442a0b8c93349f7d654745dc386.tar.xz |
dont list deleted ones, that still don't know they are gone
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index fa7ee21..ef511aa 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -3843,7 +3843,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3843 | LSL_List result = new LSL_List(); | 3843 | LSL_List result = new LSL_List(); |
3844 | World.ForEachRootScenePresence(delegate (ScenePresence avatar) | 3844 | World.ForEachRootScenePresence(delegate (ScenePresence avatar) |
3845 | { | 3845 | { |
3846 | if (avatar != null && avatar.IsNPC) | 3846 | // npcs are not childagents but that is now. |
3847 | if (avatar != null && avatar.IsNPC && !avatar.IsDeleted && !avatar.IsChildAgent) | ||
3847 | { | 3848 | { |
3848 | result.Add(new LSL_String(avatar.UUID.ToString())); | 3849 | result.Add(new LSL_String(avatar.UUID.ToString())); |
3849 | result.Add(new LSL_Vector(avatar.AbsolutePosition)); | 3850 | result.Add(new LSL_Vector(avatar.AbsolutePosition)); |