[Clantags] Also apply clantags on overhead names.
This commit is contained in:
parent
78530a247d
commit
123fd8bff3
@ -7,6 +7,7 @@ namespace Components
|
||||
public:
|
||||
static void ParseClantags(const char * infoString);
|
||||
static void SendClantagsToClients();
|
||||
static const char* GetUserClantag(std::uint32_t clientnum, const char * playername);
|
||||
|
||||
Clantags();
|
||||
~Clantags();
|
||||
@ -14,7 +15,6 @@ namespace Components
|
||||
private:
|
||||
static std::string Clantags::Tags[18];
|
||||
|
||||
static const char* GetUserClantag(std::uint32_t clientnum, const char * playername);
|
||||
static void DrawPlayerNameOnScoreboard();
|
||||
|
||||
};
|
||||
|
@ -108,8 +108,8 @@ namespace Components
|
||||
{
|
||||
Game::CL_GetClientName(localClientNum, index, buf, size);
|
||||
|
||||
// Remove the colors
|
||||
strncpy_s(buf, size, Colors::Strip(buf).data(), size);
|
||||
// Append clantag to username & remove the colors
|
||||
strncpy_s(buf, size, Colors::Strip(Clantags::GetUserClantag(index, buf)).data(), size);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user