diff --git a/saco/net/remoteplayer.cpp b/saco/net/remoteplayer.cpp index 1eb9e18..48eeb0a 100644 --- a/saco/net/remoteplayer.cpp +++ b/saco/net/remoteplayer.cpp @@ -77,3 +77,9 @@ DWORD CRemotePlayer::GetPlayerColorAsRGBA() //---------------------------------------------------- +DWORD CRemotePlayer::GetPlayerColorAsARGB() +{ + return (TranslateColorCodeToRGBA(m_PlayerID) >> 8) | 0xFF000000; +} + +//---------------------------------------------------- diff --git a/saco/net/remoteplayer.h b/saco/net/remoteplayer.h index 97261e2..ea40118 100644 --- a/saco/net/remoteplayer.h +++ b/saco/net/remoteplayer.h @@ -59,6 +59,7 @@ public: void SetPlayerColor(DWORD dwColor); DWORD GetPlayerColorAsRGBA(); + DWORD GetPlayerColorAsARGB(); }; //----------------------------------------------------