diff options
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 27a848f..e1fa61f 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -3220,7 +3220,29 @@ bool LLVOAvatar::loadClientTags() | |||
3220 | void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client, LLVOAvatar* avatar) | 3220 | void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client, LLVOAvatar* avatar) |
3221 | { | 3221 | { |
3222 | LLUUID idx = avatar->getTE(0)->getID(); | 3222 | LLUUID idx = avatar->getTE(0)->getID(); |
3223 | if(LLVOAvatar::sClientResolutionList.has("isComplete") | 3223 | // Meta7 gets special treatment - |
3224 | // A) coz this is our damn viewer. | ||
3225 | // 2) makes it quicker coz everyone else around you is using it. | ||
3226 | // III) the client tags list out in the wild is wrong. | ||
3227 | // D) Casper sucks cocks, or Casper cocks suck. Probably both. | ||
3228 | if(idx == LLUUID("b32f01bc-f9b3-4535-b1f3-99dc38f022db")) | ||
3229 | { | ||
3230 | avatar_name_color = LLColor4(0.8f,1.0f,0.0f,1.0f);//Meta7 | ||
3231 | client = "Meta7"; | ||
3232 | } | ||
3233 | // Imprudence is special to, coz dark purple on black is just unreadable. Pffft. | ||
3234 | else if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf")) | ||
3235 | { | ||
3236 | avatar_name_color = LLColor4(0.79f,0.44f,0.88f);//Imprudence | ||
3237 | client = "Imprudence"; | ||
3238 | } | ||
3239 | // Don't think anyone allocates these tags, so grab one for us to. | ||
3240 | else if(idx == LLUUID("f5788536-508d-4d2a-b6db-bb2b4a19f626")) | ||
3241 | { | ||
3242 | avatar_name_color = LLColor4(0.5f,0.5f,1.0f);//meta-impy | ||
3243 | client = "meta-impy"; | ||
3244 | } | ||
3245 | else if(LLVOAvatar::sClientResolutionList.has("isComplete") | ||
3224 | && LLVOAvatar::sClientResolutionList.has(idx.asString())) | 3246 | && LLVOAvatar::sClientResolutionList.has(idx.asString())) |
3225 | { | 3247 | { |
3226 | LLSD cllsd = LLVOAvatar::sClientResolutionList[idx.asString()]; | 3248 | LLSD cllsd = LLVOAvatar::sClientResolutionList[idx.asString()]; |
@@ -3231,24 +3253,15 @@ void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client, | |||
3231 | avatar_name_color *= 1.0/(cllsd["multiple"].asReal()+1.0f); | 3253 | avatar_name_color *= 1.0/(cllsd["multiple"].asReal()+1.0f); |
3232 | } | 3254 | } |
3233 | else | 3255 | else |
3234 | { | 3256 | { |
3235 | 3257 | if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") || | |
3236 | if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf")) | ||
3237 | { | ||
3238 | avatar_name_color = LLColor4(0.79f,0.44f,0.88f);//Imprudence | ||
3239 | client = "Imprudence"; | ||
3240 | |||
3241 | }else if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") || | ||
3242 | idx == LLUUID("b6820989-bf42-ff59-ddde-fd3fd3a74fe4")) | 3258 | idx == LLUUID("b6820989-bf42-ff59-ddde-fd3fd3a74fe4")) |
3243 | { | 3259 | { |
3244 | avatar_name_color += LLColor4(1.0f,0.9f,0.7f);//Meerkat | 3260 | avatar_name_color += LLColor4(1.0f,0.9f,0.7f);//Meerkat |
3245 | avatar_name_color = avatar_name_color * (F32)0.333333333333; | 3261 | avatar_name_color = avatar_name_color * (F32)0.333333333333; |
3246 | client = "Meerkat"; | 3262 | client = "Meerkat"; |
3247 | }else if(idx == LLUUID("b32f01bc-f9b3-4535-b1f3-99dc38f022db")) | 3263 | } |
3248 | { | 3264 | else if(idx == LLUUID("ccda2b3b-e72c-a112-e126-fee238b67218")) |
3249 | avatar_name_color = LLColor4(0.8f,1.0f,0.0f,1.0f);//Meta7 | ||
3250 | client = "Meta7"; | ||
3251 | }else if(idx == LLUUID("ccda2b3b-e72c-a112-e126-fee238b67218")) | ||
3252 | { | 3265 | { |
3253 | avatar_name_color += LLColor4::green;//emerald | 3266 | avatar_name_color += LLColor4::green;//emerald |
3254 | avatar_name_color += LLColor4::green; | 3267 | avatar_name_color += LLColor4::green; |