From beb74082b34fe71868af3e4f4aac7e96395a9d63 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 22 Jan 2014 00:35:02 +0100 Subject: [PATCH] Send initial team state --- src/game/server/entities/character.cpp | 2 +- src/game/server/gamecontext.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index 89ad0215f..e236b5507 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -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"); diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 33d274e23..91f283582 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -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);