diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltoolbar.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/linden/indra/newview/lltoolbar.cpp b/linden/indra/newview/lltoolbar.cpp index 8202191..6d04294 100644 --- a/linden/indra/newview/lltoolbar.cpp +++ b/linden/indra/newview/lltoolbar.cpp | |||
@@ -307,6 +307,20 @@ void LLToolBar::refresh() | |||
307 | } | 307 | } |
308 | gSavedSettings.setBOOL("BuildBtnState", build_mode); | 308 | gSavedSettings.setBOOL("BuildBtnState", build_mode); |
309 | 309 | ||
310 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | ||
311 | // Called per-frame so this really can't be slow | ||
312 | if (rlv_handler_t::isEnabled()) | ||
313 | { | ||
314 | // If we're rez-restricted, we can still edit => allow build floater | ||
315 | // If we're edit-restricted, we can still rez => allow build floater | ||
316 | childSetEnabled("build_btn", !(gRlvHandler.hasBehaviour(RLV_BHVR_REZ) && gRlvHandler.hasBehaviour(RLV_BHVR_EDIT)) ); | ||
317 | |||
318 | childSetEnabled("map_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWWORLDMAP) ); | ||
319 | childSetEnabled("radar_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWMINIMAP) ); | ||
320 | childSetEnabled("inventory_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWINV) ); | ||
321 | } | ||
322 | // [/RLVa:KB] | ||
323 | |||
310 | updateCommunicateList(); | 324 | updateCommunicateList(); |
311 | } | 325 | } |
312 | 326 | ||
@@ -479,6 +493,14 @@ void LLToolBar::onClickSit(void*) | |||
479 | } | 493 | } |
480 | else | 494 | else |
481 | { | 495 | { |
496 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
497 | // NOTE-RLVa: dead code? | ||
498 | if (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) | ||
499 | { | ||
500 | return; | ||
501 | } | ||
502 | // [/RLVa:KB] | ||
503 | |||
482 | // stand up | 504 | // stand up |
483 | gAgent.setFlying(FALSE); | 505 | gAgent.setFlying(FALSE); |
484 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); | 506 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); |