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/llnetmap.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/llnetmap.cpp | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp index 6fa6745..8f5d90d 100644 --- a/linden/indra/newview/llnetmap.cpp +++ b/linden/indra/newview/llnetmap.cpp | |||
@@ -355,6 +355,16 @@ void LLNetMap::draw() | |||
355 | glyph_color = avatar_color; | 355 | glyph_color = avatar_color; |
356 | } | 356 | } |
357 | 357 | ||
358 | // [RLVa:KB] | ||
359 | if ( !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) ) | ||
360 | { | ||
361 | // User is not allowed to see who it is, or even if it's a friend, | ||
362 | // due to RLV settings. | ||
363 | glyph_color = avatar_color; | ||
364 | } | ||
365 | // [/RLVa:KB] | ||
366 | |||
367 | |||
358 | LLWorldMapView::drawAvatar( | 368 | LLWorldMapView::drawAvatar( |
359 | pos_map.mV[VX], pos_map.mV[VY], | 369 | pos_map.mV[VX], pos_map.mV[VY], |
360 | glyph_color, | 370 | glyph_color, |
@@ -551,11 +561,33 @@ BOOL LLNetMap::handleToolTip( S32 x, S32 y, std::string& msg, LLRect* sticky_rec | |||
551 | std::string fullname; | 561 | std::string fullname; |
552 | if(mClosestAgentToCursor.notNull() && gCacheName->getFullName(mClosestAgentToCursor, fullname)) | 562 | if(mClosestAgentToCursor.notNull() && gCacheName->getFullName(mClosestAgentToCursor, fullname)) |
553 | { | 563 | { |
554 | msg.append(fullname); | 564 | // [RLVa:KB] |
555 | msg.append("\n"); | 565 | if ( !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) ) |
566 | { | ||
567 | // User is not allowed to see who it is, due to RLV settings. | ||
568 | msg.append(rlv_handler_t::cstrHidden); | ||
569 | } | ||
570 | else | ||
571 | { | ||
572 | msg.append(fullname); | ||
573 | msg.append("\n"); | ||
574 | } | ||
575 | // [/RLVa:KB] | ||
556 | } | 576 | } |
557 | msg.append( region->getName() ); | ||
558 | 577 | ||
578 | // [RLVa:KB] | ||
579 | if (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) | ||
580 | { | ||
581 | // User is not allowed to see where they are, due to RLV settings. | ||
582 | msg.append( rlv_handler_t::cstrHidden ); | ||
583 | } | ||
584 | else | ||
585 | { | ||
586 | msg.append( region->getName() ); | ||
587 | } | ||
588 | // [/RLVa:KB] | ||
589 | |||
590 | |||
559 | msg.append("\n"); | 591 | msg.append("\n"); |
560 | gSavedSettings.getBOOL( "MiniMapTeleport" ) ? | 592 | gSavedSettings.getBOOL( "MiniMapTeleport" ) ? |
561 | msg.append(getString("tooltip_tp")) : msg.append(getString("tooltip_map")); | 593 | msg.append(getString("tooltip_tp")) : msg.append(getString("tooltip_map")); |