core/PlayerManager.cpp
changeset 916 39ae94ad60ce
parent 848 32c29dd9c7ec
child 930 4ce68e8f7577
     1.1 --- a/core/PlayerManager.cpp	Thu Jun 07 07:36:41 2007 +0000
     1.2 +++ b/core/PlayerManager.cpp	Thu Jun 07 18:50:52 2007 +0000
     1.3 @@ -321,6 +321,18 @@
     1.4  	m_clputinserver->Execute(&res, NULL);
     1.5  }
     1.6  
     1.7 +void PlayerManager::OnSourceModLevelEnd()
     1.8 +{
     1.9 +	/* Disconnect all bots still in game */
    1.10 +	for (int i=1; i<=m_maxClients; i++)
    1.11 +	{
    1.12 +		if (m_Players[i].IsConnected() && m_Players[i].IsFakeClient())
    1.13 +		{
    1.14 +			OnClientDisconnect(m_Players[i].GetEdict());
    1.15 +		}
    1.16 +	}
    1.17 +}
    1.18 +
    1.19  void PlayerManager::OnClientDisconnect(edict_t *pEntity)
    1.20  {
    1.21  	cell_t res;