1.1 --- a/core/PlayerManager.cpp Mon Apr 07 23:17:11 2014 -0400
1.2 +++ b/core/PlayerManager.cpp Wed Apr 09 13:17:18 2014 -0400
1.3 @@ -2107,7 +2107,12 @@
1.4 else
1.5 {
1.6 IClient *pClient = static_cast<IClient *>(pNetChan->GetMsgHandler());
1.7 -#if SOURCE_ENGINE == SE_DOTA || SOURCE_ENGINE == SE_CSGO
1.8 +#if SOURCE_ENGINE == SE_DOTA
1.9 + // Including network_connection.pb.h (and .cpp) is overkill for just this. -p
1.10 + // Copied from ENetworkDisconnectionReason enum
1.11 + const int NETWORK_DISCONNECT_KICKED = 39;
1.12 + pClient->Disconnect(NETWORK_DISCONNECT_KICKED);
1.13 +#elif SOURCE_ENGINE == SE_CSGO
1.14 pClient->Disconnect(str);
1.15 #else
1.16 pClient->Disconnect("%s", str);