diff options
Diffstat (limited to 'linden/indra/newview/lloverlaybar.cpp')
-rw-r--r-- | linden/indra/newview/lloverlaybar.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp index 91a7375..91ac440 100644 --- a/linden/indra/newview/lloverlaybar.cpp +++ b/linden/indra/newview/lloverlaybar.cpp | |||
@@ -256,7 +256,10 @@ void LLOverlayBar::refresh() | |||
256 | BOOL sitting = FALSE; | 256 | BOOL sitting = FALSE; |
257 | if (gAgent.getAvatarObject()) | 257 | if (gAgent.getAvatarObject()) |
258 | { | 258 | { |
259 | sitting = gAgent.getAvatarObject()->mIsSitting; | 259 | // sitting = gAgent.getAvatarObject()->mIsSitting; |
260 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
261 | sitting = gAgent.getAvatarObject()->mIsSitting && !gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT); | ||
262 | // [/RLVa:KB] | ||
260 | } | 263 | } |
261 | button = getChild<LLButton>("Stand Up"); | 264 | button = getChild<LLButton>("Stand Up"); |
262 | 265 | ||
@@ -336,6 +339,13 @@ void LLOverlayBar::onClickMouselook(void*) | |||
336 | //static | 339 | //static |
337 | void LLOverlayBar::onClickStandUp(void*) | 340 | void LLOverlayBar::onClickStandUp(void*) |
338 | { | 341 | { |
342 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
343 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) | ||
344 | { | ||
345 | return; | ||
346 | } | ||
347 | // [/RLVa:KB] | ||
348 | |||
339 | LLSelectMgr::getInstance()->deselectAllForStandingUp(); | 349 | LLSelectMgr::getInstance()->deselectAllForStandingUp(); |
340 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); | 350 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); |
341 | } | 351 | } |