diff -r 62c6fb7c533b -r 39ae94ad60ce core/PlayerManager.cpp --- a/core/PlayerManager.cpp Thu Jun 07 07:36:41 2007 +0000 +++ b/core/PlayerManager.cpp Thu Jun 07 18:50:52 2007 +0000 @@ -321,6 +321,18 @@ m_clputinserver->Execute(&res, NULL); } +void PlayerManager::OnSourceModLevelEnd() +{ + /* Disconnect all bots still in game */ + for (int i=1; i<=m_maxClients; i++) + { + if (m_Players[i].IsConnected() && m_Players[i].IsFakeClient()) + { + OnClientDisconnect(m_Players[i].GetEdict()); + } + } +} + void PlayerManager::OnClientDisconnect(edict_t *pEntity) { cell_t res;