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

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

View File

@ -92,3 +92,10 @@ void CLocalPlayer::SetPlayerColor(DWORD dwColor)
//----------------------------------------------------
DWORD CLocalPlayer::GetPlayerColorAsRGBA()
{
return TranslateColorCodeToRGBA(pNetGame->GetPlayerPool()->GetLocalPlayerID());
}
//----------------------------------------------------

View File

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