diff options
author | Armin Weatherwax | 2011-01-24 18:46:25 +0100 |
---|---|---|
committer | Armin Weatherwax | 2011-01-24 20:20:36 +0100 |
commit | cf573d4143491abe627b69dd7e6b0e0349109913 (patch) | |
tree | ea5ad4d7988bfbc7b6a7b7eb4f125f57f2bc7094 /linden/indra/newview/llviewermessage.cpp | |
parent | re-enable statistics packet for SL, firstuse warn about it (diff) | |
download | meta-impy-cf573d4143491abe627b69dd7e6b0e0349109913.zip meta-impy-cf573d4143491abe627b69dd7e6b0e0349109913.tar.gz meta-impy-cf573d4143491abe627b69dd7e6b0e0349109913.tar.bz2 meta-impy-cf573d4143491abe627b69dd7e6b0e0349109913.tar.xz |
Henri Beauchamp: Display Names support v4
Diffstat (limited to '')
-rwxr-xr-x | linden/indra/newview/llviewermessage.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 5f333e9..8cb154e 100755 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -2998,6 +2998,33 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data) | |||
2998 | 2998 | ||
2999 | if (is_audible) | 2999 | if (is_audible) |
3000 | { | 3000 | { |
3001 | if (chatter && chatter->isAvatar()) | ||
3002 | { | ||
3003 | #ifdef LL_RRINTERFACE_H //MK | ||
3004 | if (!gRRenabled || !gAgent.mRRInterface.mContainsShownames) | ||
3005 | { | ||
3006 | #endif //mk | ||
3007 | if (LLAvatarNameCache::useDisplayNames()) | ||
3008 | { | ||
3009 | LLAvatarName avatar_name; | ||
3010 | if (LLAvatarNameCache::get(from_id, &avatar_name)) | ||
3011 | { | ||
3012 | if (LLAvatarNameCache::useDisplayNames() == 2) | ||
3013 | { | ||
3014 | from_name = avatar_name.mDisplayName; | ||
3015 | } | ||
3016 | else | ||
3017 | { | ||
3018 | from_name = avatar_name.getNames(); | ||
3019 | } | ||
3020 | } | ||
3021 | chat.mFromName = from_name; | ||
3022 | } | ||
3023 | #ifdef LL_RRINTERFACE_H //MK | ||
3024 | } | ||
3025 | #endif //mk | ||
3026 | } | ||
3027 | |||
3001 | BOOL visible_in_chat_bubble = FALSE; | 3028 | BOOL visible_in_chat_bubble = FALSE; |
3002 | std::string verb; | 3029 | std::string verb; |
3003 | 3030 | ||