aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie2012-03-12 11:44:07 +0100
committerMelanie2012-03-12 11:44:07 +0100
commit139c0665cfdb5d0d2085609b7570914ec271124a (patch)
tree824eafd1851c0076274bf9ebeca658e0d9c788ca /OpenSim/Region
parentubitOde also knows a bit more about physical phantom (diff)
downloadopensim-SC-139c0665cfdb5d0d2085609b7570914ec271124a.zip
opensim-SC-139c0665cfdb5d0d2085609b7570914ec271124a.tar.gz
opensim-SC-139c0665cfdb5d0d2085609b7570914ec271124a.tar.bz2
opensim-SC-139c0665cfdb5d0d2085609b7570914ec271124a.tar.xz
Add AVATAR_MALE flag to return values of llGetAgentInfo
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs5
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs1
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;