[Clantags] Also apply clantags on overhead names.

This commit is contained in:
RektInator 2017-05-31 19:14:58 +02:00
parent 78530a247d
commit 123fd8bff3
2 changed files with 3 additions and 3 deletions

View File

@ -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();
};

View File

@ -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;
}