1.1 --- a/core/PlayerManager.cpp Sun Aug 19 15:44:36 2007 +0000
1.2 +++ b/core/PlayerManager.cpp Sun Aug 19 15:47:53 2007 +0000
1.3 @@ -475,6 +475,7 @@
1.4 OnClientDisconnect(m_Players[i].GetEdict());
1.5 }
1.6 }
1.7 + m_PlayerCount = 0;
1.8 }
1.9
1.10 void PlayerManager::OnClientDisconnect(edict_t *pEntity)
1.11 @@ -491,7 +492,7 @@
1.12 return;
1.13 }
1.14
1.15 - if (m_Players[client].IsInGame())
1.16 + if (m_Players[client].WasCountedAsInGame())
1.17 {
1.18 m_PlayerCount--;
1.19 }
1.20 @@ -884,6 +885,11 @@
1.21 return m_IsInGame && (m_pEdict->GetUnknown() != NULL);
1.22 }
1.23
1.24 +bool CPlayer::WasCountedAsInGame()
1.25 +{
1.26 + return m_IsInGame;
1.27 +}
1.28 +
1.29 bool CPlayer::IsConnected()
1.30 {
1.31 return m_IsConnected;