diff options
author | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
commit | 3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch) | |
tree | 504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llvoavatar.cpp | |
parent | Second Life viewer sources 1.18.4.3 (diff) | |
download | meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2 meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz |
Second Life viewer sources 1.18.5.0-RC
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 41873c7..4905ff8 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -271,6 +271,7 @@ LLUUID LLVOAvatar::sStepSounds[LL_MCODE_END] = | |||
271 | }; | 271 | }; |
272 | 272 | ||
273 | S32 LLVOAvatar::sRenderName = RENDER_NAME_ALWAYS; | 273 | S32 LLVOAvatar::sRenderName = RENDER_NAME_ALWAYS; |
274 | BOOL LLVOAvatar::sRenderGroupTitles = TRUE; | ||
274 | S32 LLVOAvatar::sNumVisibleChatBubbles = 0; | 275 | S32 LLVOAvatar::sNumVisibleChatBubbles = 0; |
275 | BOOL LLVOAvatar::sDebugInvisible = FALSE; | 276 | BOOL LLVOAvatar::sDebugInvisible = FALSE; |
276 | BOOL LLVOAvatar::sShowAttachmentPoints = FALSE; | 277 | BOOL LLVOAvatar::sShowAttachmentPoints = FALSE; |
@@ -2704,7 +2705,15 @@ BOOL LLVOAvatar::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time) | |||
2704 | || is_appearance != mNameAppearance) | 2705 | || is_appearance != mNameAppearance) |
2705 | { | 2706 | { |
2706 | char line[MAX_STRING]; /* Flawfinder: ignore */ | 2707 | char line[MAX_STRING]; /* Flawfinder: ignore */ |
2707 | if (title && title->getString() && title->getString()[0] != '\0') | 2708 | if (!sRenderGroupTitles) |
2709 | { | ||
2710 | // If all group titles are turned off, stack first name | ||
2711 | // on a line above last name | ||
2712 | strncpy(line, firstname->getString(), MAX_STRING -1 ); /* Flawfinder: ignore */ | ||
2713 | line[MAX_STRING -1] = '\0'; | ||
2714 | strcat(line, "\n"); | ||
2715 | } | ||
2716 | else if (title && title->getString() && title->getString()[0] != '\0') | ||
2708 | { | 2717 | { |
2709 | strncpy(line, title->getString(), MAX_STRING -1 ); /* Flawfinder: ignore */ | 2718 | strncpy(line, title->getString(), MAX_STRING -1 ); /* Flawfinder: ignore */ |
2710 | line[MAX_STRING -1] = '\0'; | 2719 | line[MAX_STRING -1] = '\0'; |