From b6fa69cedb9d2b5117afe092b1c600f9f04c6a77 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Mon, 14 Feb 2011 19:41:32 +0100 Subject: the server shows the disconnect reason of clients now --- src/game/server/gamecontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/server/gamecontext.cpp') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 56b733f3..704dd5a4 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -546,10 +546,10 @@ void CGameContext::OnClientConnected(int ClientID) Server()->SendPackMsg(&Msg, MSGFLAG_VITAL, ClientID); } -void CGameContext::OnClientDrop(int ClientID) +void CGameContext::OnClientDrop(int ClientID, const char *pReason) { AbortVoteKickOnDisconnect(ClientID); - m_apPlayers[ClientID]->OnDisconnect(); + m_apPlayers[ClientID]->OnDisconnect(pReason); delete m_apPlayers[ClientID]; m_apPlayers[ClientID] = 0; -- cgit 1.4.1