mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
Send initial team state
This commit is contained in:
parent
97d7037011
commit
beb74082b3
|
@ -1751,7 +1751,7 @@ void CCharacter::DDRaceInit()
|
||||||
m_LastBroadcast = 0;
|
m_LastBroadcast = 0;
|
||||||
m_TeamBeforeSuper = 0;
|
m_TeamBeforeSuper = 0;
|
||||||
m_Core.m_Id = GetPlayer()->GetCID();
|
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)
|
if(g_Config.m_SvTeam == 2)
|
||||||
{
|
{
|
||||||
GameServer()->SendChatTarget(GetPlayer()->GetCID(),"Please join a team before you start");
|
GameServer()->SendChatTarget(GetPlayer()->GetCID(),"Please join a team before you start");
|
||||||
|
|
|
@ -1227,7 +1227,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
||||||
dbg_msg("DDRace", aBuf);
|
dbg_msg("DDRace", aBuf);
|
||||||
|
|
||||||
//first update his teams state
|
//first update his teams state
|
||||||
//((CGameControllerDDRace*)m_pController)->m_Teams.SendTeamsState(ClientID);
|
((CGameControllerDDRace*)m_pController)->m_Teams.SendTeamsState(ClientID);
|
||||||
|
|
||||||
//second give him records
|
//second give him records
|
||||||
SendRecord(ClientID);
|
SendRecord(ClientID);
|
||||||
|
|
Loading…
Reference in a new issue