diff options
author | Jacek Antonelli | 2009-09-04 01:56:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-04 03:39:51 -0500 |
commit | 89a510de10c48ebcf82b98a962e4bf66477dcc93 (patch) | |
tree | d30f79f433badffe36a67fc155e70a0e29dd2dc4 /linden/indra/newview/lloverlaybar.cpp | |
parent | Backported 1.23 fix for animation joint assertion crash. (diff) | |
download | meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.zip meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.gz meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.bz2 meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.xz |
Applied Kitty Barnett's RLVa 1.0.1h (Restrained Life) patch.
Made a few non-functional changes to help it apply.
Diffstat (limited to '')
-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 | } |