Server counts the players correctly.
Was missing the PlayerDestroying() call, so players weren't removed from the playercount.
This commit is contained in:
@@ -183,7 +183,7 @@ void cServer::PlayerCreated(const cPlayer * a_Player)
|
||||
|
||||
|
||||
|
||||
void cServer::PlayerDestroyed(const cPlayer * a_Player)
|
||||
void cServer::PlayerDestroying(const cPlayer * a_Player)
|
||||
{
|
||||
// To avoid deadlocks, the player count is not handled directly, but rather posted onto the tick thread
|
||||
cCSLock Lock(m_CSPlayerCountDiff);
|
||||
|
||||
Reference in New Issue
Block a user