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