[CardTitles]: Code Style Update (#987)
This commit is contained in:
parent
97cc02b6e1
commit
de52a67277
@ -137,14 +137,13 @@ namespace Components
|
|||||||
pop eax
|
pop eax
|
||||||
|
|
||||||
cmp eax, 0
|
cmp eax, 0
|
||||||
jz OriginalTitle
|
jz originalTitle
|
||||||
|
|
||||||
pop ecx
|
pop ecx
|
||||||
mov ecx, DWORD ptr[esi + 4]
|
mov ecx, dword ptr[esi + 4]
|
||||||
retn
|
retn
|
||||||
|
|
||||||
OriginalTitle:
|
originalTitle:
|
||||||
|
|
||||||
mov eax, [esi + 50h]
|
mov eax, [esi + 50h]
|
||||||
cmp eax, 3
|
cmp eax, 3
|
||||||
|
|
||||||
@ -173,8 +172,7 @@ namespace Components
|
|||||||
list.append(std::format("\\{}\\{}", i, playerTitle));
|
list.append(std::format("\\{}\\{}", i, playerTitle));
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto* command = Utils::String::Format("{:c} customTitles \"{}\"", 21, list);
|
Game::SV_GameSendServerCommand(-1, Game::SV_CMD_CAN_IGNORE, Utils::String::Format("{:c} customTitles \"{}\"", 21, list));
|
||||||
Game::SV_GameSendServerCommand(-1, Game::SV_CMD_CAN_IGNORE, command);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CardTitles::ParseCustomTitles(const char* msg)
|
void CardTitles::ParseCustomTitles(const char* msg)
|
||||||
|
@ -86,7 +86,7 @@ namespace Components
|
|||||||
auto curChar = CL_FilterChar(static_cast<unsigned char>(currentName[i]));
|
auto curChar = CL_FilterChar(static_cast<unsigned char>(currentName[i]));
|
||||||
if (curChar > 0)
|
if (curChar > 0)
|
||||||
{
|
{
|
||||||
*saneName++ = (curChar & 0xFF);
|
*saneName++ = curChar & 0xFF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user