diff options
| author | heinrich5991 <heinrich5991@gmail.com> | 2011-02-14 19:41:32 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-04-01 00:05:35 +0200 |
| commit | b6fa69cedb9d2b5117afe092b1c600f9f04c6a77 (patch) | |
| tree | 6601a9ca06a62762cad5d695e7c22b6824602ba3 /src/game/server/gamecontext.cpp | |
| parent | 8cd7dec1793a74dd922192a3f6a430208b8eb526 (diff) | |
| download | zcatch-b6fa69cedb9d2b5117afe092b1c600f9f04c6a77.tar.gz zcatch-b6fa69cedb9d2b5117afe092b1c600f9f04c6a77.zip | |
the server shows the disconnect reason of clients now
Diffstat (limited to 'src/game/server/gamecontext.cpp')
| -rw-r--r-- | src/game/server/gamecontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |