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

This commit is contained in:
RD42 committed 2024-10-20 17:23:00 +08:00
1 parent fd79de6997
commit b860b6a926
2 files changed
+8

No files matched your search

+7
View File
@@ -92,3 +92,10 @@ void CLocalPlayer::SetPlayerColor(DWORD dwColor)
//----------------------------------------------------
DWORD CLocalPlayer::GetPlayerColorAsRGBA()
{
return TranslateColorCodeToRGBA(pNetGame->GetPlayerPool()->GetLocalPlayerID());
}
//----------------------------------------------------
+1
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; };