aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-05-27 23:42:19 -0700
committerJacek Antonelli2010-06-19 02:43:25 -0500
commit7545403a96790947b858f9349a4f5bb295fe6b82 (patch)
tree7572e88ea4a207a1fc8bc091656c3cac7bc95c05 /linden
parentFixed positioning of (?) button in About Land (diff)
downloadmeta-impy-7545403a96790947b858f9349a4f5bb295fe6b82.zip
meta-impy-7545403a96790947b858f9349a4f5bb295fe6b82.tar.gz
meta-impy-7545403a96790947b858f9349a4f5bb295fe6b82.tar.bz2
meta-impy-7545403a96790947b858f9349a4f5bb295fe6b82.tar.xz
Use the Imprudence color for your own nametag when client detection enabled
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llvoavatar.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 7c867d2..2a2da8d 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -3486,12 +3486,19 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3486 } 3486 }
3487 3487
3488 LLColor4 avatar_name_color = gColors.getColor( "AvatarNameColor" ); 3488 LLColor4 avatar_name_color = gColors.getColor( "AvatarNameColor" );
3489 if(!mIsSelf) //don't know your own client ? 3489 if (gSavedSettings.getBOOL("ShowClientNameTag"))
3490 { 3490 {
3491 new_name = TRUE; //lol or see the last client used 3491 if(!mIsSelf) //don't know your own client ?
3492 if (gSavedSettings.getBOOL("ShowClientNameTag"))
3493 { 3492 {
3494 resolveClient(avatar_name_color,client, this); 3493 new_name = TRUE; //lol or see the last client used
3494 {
3495 resolveClient(avatar_name_color,client, this);
3496 }
3497 }
3498 else
3499 {
3500 // Set your own name to the Imprudence color -- MC
3501 avatar_name_color = LLColor4(0.79f,0.44f,0.88f);
3495 } 3502 }
3496 } 3503 }
3497 avatar_name_color.setAlpha(alpha); 3504 avatar_name_color.setAlpha(alpha);