From 7545403a96790947b858f9349a4f5bb295fe6b82 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Thu, 27 May 2010 23:42:19 -0700 Subject: Use the Imprudence color for your own nametag when client detection enabled --- linden/indra/newview/llvoavatar.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'linden/indra') 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) } LLColor4 avatar_name_color = gColors.getColor( "AvatarNameColor" ); - if(!mIsSelf) //don't know your own client ? + if (gSavedSettings.getBOOL("ShowClientNameTag")) { - new_name = TRUE; //lol or see the last client used - if (gSavedSettings.getBOOL("ShowClientNameTag")) + if(!mIsSelf) //don't know your own client ? { - resolveClient(avatar_name_color,client, this); + new_name = TRUE; //lol or see the last client used + { + resolveClient(avatar_name_color,client, this); + } + } + else + { + // Set your own name to the Imprudence color -- MC + avatar_name_color = LLColor4(0.79f,0.44f,0.88f); } } avatar_name_color.setAlpha(alpha); -- cgit v1.1