Send initial team state

This commit is contained in:
def 2014-01-22 00:35:02 +01:00
parent 97d7037011
commit beb74082b3
2 changed files with 2 additions and 2 deletions

View file

@ -1751,7 +1751,7 @@ void CCharacter::DDRaceInit()
m_LastBroadcast = 0;
m_TeamBeforeSuper = 0;
m_Core.m_Id = GetPlayer()->GetCID();
//if(GetPlayer()->m_IsUsingDDRaceClient) ((CGameControllerDDRace*)GameServer()->m_pController)->m_Teams.SendTeamsState(GetPlayer()->GetCID());
if(GetPlayer()->m_IsUsingDDRaceClient) ((CGameControllerDDRace*)GameServer()->m_pController)->m_Teams.SendTeamsState(GetPlayer()->GetCID());
if(g_Config.m_SvTeam == 2)
{
GameServer()->SendChatTarget(GetPlayer()->GetCID(),"Please join a team before you start");

View file

@ -1227,7 +1227,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
dbg_msg("DDRace", aBuf);
//first update his teams state
//((CGameControllerDDRace*)m_pController)->m_Teams.SendTeamsState(ClientID);
((CGameControllerDDRace*)m_pController)->m_Teams.SendTeamsState(ClientID);
//second give him records
SendRecord(ClientID);