1.1 --- a/core/PlayerManager.cpp Mon May 13 15:18:12 2013 -0400
1.2 +++ b/core/PlayerManager.cpp Mon May 13 15:33:55 2013 -0400
1.3 @@ -678,7 +678,11 @@
1.4 m_SourceTVUserId = userId;
1.5 }
1.6
1.7 +#if SOURCE_ENGINE == SE_DOTA
1.8 + if (!OnClientConnect(client, playername, "127.0.0.1", error, sizeof(error)))
1.9 +#else
1.10 if (!OnClientConnect(pEntity, playername, "127.0.0.1", error, sizeof(error)))
1.11 +#endif
1.12 {
1.13 /* :TODO: kick the bot if it's rejected */
1.14 return;
1.15 @@ -748,7 +752,11 @@
1.16 {
1.17 if (m_Players[i].IsConnected())
1.18 {
1.19 +#if SOURCE_ENGINE == SE_DOTA
1.20 + OnClientDisconnect(m_Players[i].GetIndex());
1.21 +#else
1.22 OnClientDisconnect(m_Players[i].GetEdict());
1.23 +#endif
1.24 }
1.25 }
1.26 m_PlayerCount = 0;