[saco] Implement/match CLocalPlayer::GetPlayerColorAsARGB()

This commit is contained in:
RD42 2024-10-20 17:23:35 +08:00
parent b860b6a926
commit becf308a1c
2 changed files with 8 additions and 0 deletions

View File

@ -99,3 +99,10 @@ DWORD CLocalPlayer::GetPlayerColorAsRGBA()
//----------------------------------------------------
DWORD CLocalPlayer::GetPlayerColorAsARGB()
{
return (TranslateColorCodeToRGBA(pNetGame->GetPlayerPool()->GetLocalPlayerID()) >> 8) | 0xFF000000;
}
//----------------------------------------------------

View File

@ -98,6 +98,7 @@ public:
void SetPlayerColor(DWORD dwColor);
DWORD GetPlayerColorAsRGBA();
DWORD GetPlayerColorAsARGB();
BOOL IsSpectating() { return m_bIsSpectating; };
void ReturnToClassSelection() { m_bWantsAnotherClass = TRUE; };