diff options
Diffstat (limited to 'linden/indra/newview/llfloaterworldmap.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterworldmap.cpp | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterworldmap.cpp b/linden/indra/newview/llfloaterworldmap.cpp index bc61d8a..a31dde5 100644 --- a/linden/indra/newview/llfloaterworldmap.cpp +++ b/linden/indra/newview/llfloaterworldmap.cpp | |||
@@ -280,6 +280,13 @@ void LLFloaterWorldMap::onClose(bool app_quitting) | |||
280 | // static | 280 | // static |
281 | void LLFloaterWorldMap::show(void*, BOOL center_on_target) | 281 | void LLFloaterWorldMap::show(void*, BOOL center_on_target) |
282 | { | 282 | { |
283 | // [RLVa:KB] - Checked: 2009-07-05 (RLVa-1.0.0c) | ||
284 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWWORLDMAP)) | ||
285 | { | ||
286 | return; | ||
287 | } | ||
288 | // [/RLVa:KB] | ||
289 | |||
283 | BOOL was_visible = gFloaterWorldMap->getVisible(); | 290 | BOOL was_visible = gFloaterWorldMap->getVisible(); |
284 | 291 | ||
285 | gFloaterWorldMap->mIsClosing = FALSE; | 292 | gFloaterWorldMap->mIsClosing = FALSE; |
@@ -641,7 +648,10 @@ void LLFloaterWorldMap::trackLocation(const LLVector3d& pos_global) | |||
641 | F32 region_x = (F32)fmod( pos_global.mdV[VX], (F64)REGION_WIDTH_METERS ); | 648 | F32 region_x = (F32)fmod( pos_global.mdV[VX], (F64)REGION_WIDTH_METERS ); |
642 | F32 region_y = (F32)fmod( pos_global.mdV[VY], (F64)REGION_WIDTH_METERS ); | 649 | F32 region_y = (F32)fmod( pos_global.mdV[VY], (F64)REGION_WIDTH_METERS ); |
643 | std::string full_name = llformat("%s (%d, %d, %d)", | 650 | std::string full_name = llformat("%s (%d, %d, %d)", |
644 | sim_name.c_str(), | 651 | // sim_name.c_str(), |
652 | // [RLVa:KB] - Alternate: Snowglobe-1.0 | Checked: 2009-07-04 (RLVa-1.0.0a) | ||
653 | (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ? sim_name.c_str() : rlv_handler_t::cstrHiddenRegion.c_str(), | ||
654 | // [/RLVa:KB] | ||
645 | llround(region_x), | 655 | llround(region_x), |
646 | llround(region_y), | 656 | llround(region_y), |
647 | llround((F32)pos_global.mdV[VZ])); | 657 | llround((F32)pos_global.mdV[VZ])); |
@@ -695,6 +705,14 @@ void LLFloaterWorldMap::updateLocation() | |||
695 | 705 | ||
696 | // Set the current SLURL | 706 | // Set the current SLURL |
697 | mSLURL = LLURLDispatcher::buildSLURL(agent_sim_name, agent_x, agent_y, agent_z); | 707 | mSLURL = LLURLDispatcher::buildSLURL(agent_sim_name, agent_x, agent_y, agent_z); |
708 | |||
709 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | ||
710 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) | ||
711 | { | ||
712 | childSetValue("location", rlv_handler_t::cstrHiddenRegion); | ||
713 | mSLURL.clear(); | ||
714 | } | ||
715 | // [/RLVa:KB] | ||
698 | } | 716 | } |
699 | } | 717 | } |
700 | 718 | ||
@@ -737,6 +755,14 @@ void LLFloaterWorldMap::updateLocation() | |||
737 | { // Empty SLURL will disable the "Copy SLURL to clipboard" button | 755 | { // Empty SLURL will disable the "Copy SLURL to clipboard" button |
738 | mSLURL = ""; | 756 | mSLURL = ""; |
739 | } | 757 | } |
758 | |||
759 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | ||
760 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) | ||
761 | { | ||
762 | childSetValue("location", rlv_handler_t::cstrHiddenRegion); | ||
763 | mSLURL.clear(); | ||
764 | } | ||
765 | // [/RLVa:KB] | ||
740 | } | 766 | } |
741 | } | 767 | } |
742 | 768 | ||