[CardTitles]: Code Style Update (#987)

This commit is contained in:
Edo 2023-04-28 22:29:19 +01:00 committed by GitHub
parent 97cc02b6e1
commit de52a67277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -137,14 +137,13 @@ namespace Components
pop eax
cmp eax, 0
jz OriginalTitle
jz originalTitle
pop ecx
mov ecx, DWORD ptr[esi + 4]
mov ecx, dword ptr[esi + 4]
retn
OriginalTitle:
originalTitle:
mov eax, [esi + 50h]
cmp eax, 3
@ -173,8 +172,7 @@ namespace Components
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, command);
Game::SV_GameSendServerCommand(-1, Game::SV_CMD_CAN_IGNORE, Utils::String::Format("{:c} customTitles \"{}\"", 21, list));
}
void CardTitles::ParseCustomTitles(const char* msg)

View File

@ -86,7 +86,7 @@ namespace Components
auto curChar = CL_FilterChar(static_cast<unsigned char>(currentName[i]));
if (curChar > 0)
{
*saneName++ = (curChar & 0xFF);
*saneName++ = curChar & 0xFF;
}
}