[Clantags] More fixes

This commit is contained in:
momo5502 2017-05-31 10:33:25 +02:00
parent fbec01b237
commit 8cf9c0d93f

View File

@ -10,8 +10,8 @@ namespace Components
{ {
const char* clantag = Game::Info_ValueForKey(infoString, std::to_string(i).data()); const char* clantag = Game::Info_ValueForKey(infoString, std::to_string(i).data());
if (clantag) Tags[i] = clantag; if (clantag) Clantags::Tags[i] = clantag;
else Tags[i].clear(); else Clantags::Tags[i].clear();
} }
} }
@ -19,7 +19,7 @@ namespace Components
{ {
std::string list; std::string list;
for (int i = 0; i < 18; i++) for (int i = 0; i < 18; ++i)
{ {
char clantag[5] = { 0 }; char clantag[5] = { 0 };
@ -37,11 +37,11 @@ namespace Components
const char* Clantags::GetUserClantag(std::uint32_t clientnum, const char* playername) const char* Clantags::GetUserClantag(std::uint32_t clientnum, const char* playername)
{ {
if (Tags[clientnum].empty()) return playername; if (Clantags::Tags[clientnum].empty()) return playername;
return Utils::String::VA("[%s] %s", Tags[clientnum].data(), playername); return Utils::String::VA("[%s] %s", Clantags::Tags[clientnum].data(), playername);
} }
void __declspec(naked) Clantags::DrawPlayerNameOnScoreboard() __declspec(naked) void Clantags::DrawPlayerNameOnScoreboard()
{ {
__asm __asm
{ {