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 6b51b3a..12c001e 100644 --- a/linden/indra/newview/lloverlaybar.cpp +++ b/linden/indra/newview/lloverlaybar.cpp | |||
@@ -266,7 +266,10 @@ void LLOverlayBar::refresh() | |||
266 | BOOL sitting = FALSE; | 266 | BOOL sitting = FALSE; |
267 | if (gAgent.getAvatarObject()) | 267 | if (gAgent.getAvatarObject()) |
268 | { | 268 | { |
269 | sitting = gAgent.getAvatarObject()->mIsSitting; | 269 | // sitting = gAgent.getAvatarObject()->mIsSitting; |
270 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
271 | sitting = gAgent.getAvatarObject()->mIsSitting && !gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT); | ||
272 | // [/RLVa:KB] | ||
270 | } | 273 | } |
271 | button = getChild<LLButton>("Stand Up"); | 274 | button = getChild<LLButton>("Stand Up"); |
272 | 275 | ||
@@ -349,6 +352,13 @@ void LLOverlayBar::onClickMouselook(void*) | |||
349 | //static | 352 | //static |
350 | void LLOverlayBar::onClickStandUp(void*) | 353 | void LLOverlayBar::onClickStandUp(void*) |
351 | { | 354 | { |
355 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
356 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) | ||
357 | { | ||
358 | return; | ||
359 | } | ||
360 | // [/RLVa:KB] | ||
361 | |||
352 | LLSelectMgr::getInstance()->deselectAllForStandingUp(); | 362 | LLSelectMgr::getInstance()->deselectAllForStandingUp(); |
353 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); | 363 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); |
354 | } | 364 | } |