formatting

This commit is contained in:
mischa 2024-10-15 12:46:43 +02:00
parent ef5fc77728
commit 13db82b347

View File

@ -678,14 +678,14 @@ static bool IsConnectionAllowed(int connectionId, string address)
// hashing which can be < 0 as well, so we need to allow < 0!
if (connectionId == 0)
{
Debug.LogError($"Server.HandleConnect: invalid connectionId: {connectionId} . Needs to be != 0, because 0 is reserved for local player.");
Debug.LogError($"Server.HandleConnect: invalid connectionId={connectionId}. Needs to be != 0, because 0 is reserved for local player.");
return false;
}
// connectionId not in use yet?
if (connections.ContainsKey(connectionId))
{
Debug.LogError($"Server connectionId {connectionId}already in use...client with address={address} will be kicked");
Debug.LogError($"Server connectionId={connectionId} already in use. Client with address={address} will be kicked");
return false;
}
@ -696,7 +696,7 @@ static bool IsConnectionAllowed(int connectionId, string address)
// Transport can't do that)
if (connections.Count >= maxConnections)
{
Debug.LogError($"Server full, client {connectionId} with address={address} will be kicked");
Debug.LogError($"Server full, client connectionId={connectionId} with address={address} will be kicked");
return false;
}