Skip to content

Commit

Permalink
finally fixed #27 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
AssassinTee committed Apr 27, 2019
1 parent 7882109 commit 3fda2de
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/game/server/gamecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,17 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
pPlayer->m_TeeInfosOriginal.m_aSkinPartColors[p] = pMsg->m_aSkinPartColors[p];
}
ApplyStartColors(ClientID, pPlayer->m_TeeInfosOriginal);//does change feet and body colors of original skin
SendChat(ClientID, CHAT_ALL, ClientID, "Your skinchange will apply next round");

CNetMsg_Sv_Chat Msg;
Msg.m_Mode = CHAT_ALL;
Msg.m_ClientID = -1;

Msg.m_TargetID = ClientID;

Msg.m_pMessage = "Your skinchange will apply next round";
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL, ClientID);

//SendChat(-1, CHAT_ALL, ClientID, "Your skinchange will apply next round");
// update all clients//don't update, the update will apply next round
/*for(int i = 0; i < MAX_CLIENTS; ++i)
{
Expand Down

0 comments on commit 3fda2de

Please sign in to comment.