diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-06-30 19:34:07 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-06-30 19:34:07 +0800 |
commit | 2ed42e44bd6bc78b93c0a38abc2c073a10263c9b (patch) | |
tree | 81c4f551724080d25ebd93412ba1cdbc0a1fc4fb /indra/newview/llagent.cpp | |
parent | d0e3c7a40395ea5ad7f7a9982ce4dbf464e24caa (diff) |
Minimal @sit=<y/n> command implementation
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r-- | indra/newview/llagent.cpp | 6 |
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); } |