[server] Implement/match CPlayer::SetPlayerColor(...)

This commit is contained in:
RD42
2024-09-20 23:35:31 +08:00
parent cace251a9d
commit fe626fdce5
5 changed files with 22 additions and 8 deletions

View File

@ -23,7 +23,19 @@ void CPlayer::SetSpawnInfo(PLAYER_SPAWN_INFO *pSpawn)
//----------------------------------------------------
void CPlayer::SetPlayerColor(DWORD dwColor)
{
RakNet::BitStream bsColor;
m_dwColor = dwColor;
bsColor.Write(m_PlayerID);
bsColor.Write(dwColor);
pNetGame->BroadcastData(RPC_ScrSetPlayerColor, &bsColor, INVALID_PLAYER_ID, 2);
}
//----------------------------------------------------