Added new function calls in server ReadMessage loop
This commit is contained in:
@@ -32,11 +32,11 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
List<UnauthenticatedClient> unauthenticatedClients = new List<UnauthenticatedClient>();
|
||||
|
||||
private void ClientPasswordRequest(NetConnection conn)
|
||||
private void ClientAuthRequest(NetConnection conn)
|
||||
{
|
||||
//client wants to know if server requires password
|
||||
|
||||
if (ConnectedClients.Count > MaxPlayers)
|
||||
if (ConnectedClients.Count >= MaxPlayers)
|
||||
{
|
||||
//server is full, can't allow new connection
|
||||
conn.Disconnect("Server full");
|
||||
|
||||
Reference in New Issue
Block a user