summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index b8b5ba2264..3a4e29afc1 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -387,6 +387,7 @@ LLAgent::LLAgent() :
mbTeleportKeepsLookAt(false),
mAllowedToStand(true),
+ mAllowedToSit(true),
mAgentAccess(new LLAgentAccess(gSavedSettings)),
mGodLevelChangeSignal(),
@@ -971,8 +972,7 @@ bool LLAgent::isSitting()
void LLAgent::standUp()
{
- if (mAllowedToStand)
- setControlFlags(AGENT_CONTROL_STAND_UP);
+ if (mAllowedToStand) setControlFlags(AGENT_CONTROL_STAND_UP);
}
void LLAgent::changeParcels()
@@ -1346,7 +1346,7 @@ LLVector3d LLAgent::getPosGlobalFromAgent(const LLVector3 &pos_agent) const
void LLAgent::sitDown()
{
- setControlFlags(AGENT_CONTROL_SIT_ON_GROUND);
+ if (mAllowedToSit) setControlFlags(AGENT_CONTROL_SIT_ON_GROUND);
}