diff options
author | Melanie | 2012-03-12 11:44:07 +0100 |
---|---|---|
committer | Melanie | 2012-03-12 11:44:07 +0100 |
commit | 139c0665cfdb5d0d2085609b7570914ec271124a (patch) | |
tree | 824eafd1851c0076274bf9ebeca658e0d9c788ca | |
parent | ubitOde also knows a bit more about physical phantom (diff) | |
download | opensim-SC_OLD-139c0665cfdb5d0d2085609b7570914ec271124a.zip opensim-SC_OLD-139c0665cfdb5d0d2085609b7570914ec271124a.tar.gz opensim-SC_OLD-139c0665cfdb5d0d2085609b7570914ec271124a.tar.bz2 opensim-SC_OLD-139c0665cfdb5d0d2085609b7570914ec271124a.tar.xz |
Add AVATAR_MALE flag to return values of llGetAgentInfo
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index e2d17a7..958527a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6069,6 +6069,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6069 | flags |= ScriptBaseClass.AGENT_SITTING; | 6069 | flags |= ScriptBaseClass.AGENT_SITTING; |
6070 | } | 6070 | } |
6071 | 6071 | ||
6072 | if (agent.Appearance.VisualParams[(int)AvatarAppearance.VPElement.SHAPE_MALE] > 0) | ||
6073 | { | ||
6074 | flags |= ScriptBaseClass.AGENT_MALE; | ||
6075 | } | ||
6076 | |||
6072 | return flags; | 6077 | return flags; |
6073 | } | 6078 | } |
6074 | 6079 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs index a5e160d..ba75253 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | |||
@@ -94,6 +94,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
94 | public const int AGENT_CROUCHING = 1024; | 94 | public const int AGENT_CROUCHING = 1024; |
95 | public const int AGENT_BUSY = 2048; | 95 | public const int AGENT_BUSY = 2048; |
96 | public const int AGENT_ALWAYS_RUN = 4096; | 96 | public const int AGENT_ALWAYS_RUN = 4096; |
97 | public const int AGENT_MALE = 8192; | ||
97 | 98 | ||
98 | //Particle Systems | 99 | //Particle Systems |
99 | public const int PSYS_PART_INTERP_COLOR_MASK = 1; | 100 | public const int PSYS_PART_INTERP_COLOR_MASK = 1; |