From 21169f4e9a198c813d84db71bc7b11fbab6cdb36 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sat, 13 Jul 2013 13:58:47 -0400 Subject: [PATCH] Updated for latest hl2sdk-dota changes. --- core/PlayerManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index bb9b8367..5c4790bd 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -2116,7 +2116,11 @@ void CPlayer::Kick(const char *str) else { IClient *pClient = static_cast(pNetChan->GetMsgHandler()); +#if SOURCE_ENGINE == SE_DOTA + pClient->Disconnect(str); +#else pClient->Disconnect("%s", str); +#endif } }