NetworkServer.DestroyPlayersForConnection: removed unnecessary 'empty player list given to NetworkServer' warning that might happen while players are still in a lobby without entering the game world yet

This commit is contained in:
vis2k 2018-06-13 11:24:41 +02:00
parent be9efea78c
commit ae611cf82c

View File

@ -1375,7 +1375,7 @@ static public void DestroyPlayersForConnection(NetworkConnection conn)
{
if (conn.playerControllers.Count == 0)
{
if (LogFilter.logWarn) { Debug.LogWarning("Empty player list given to NetworkServer.Destroy(), nothing to do."); }
// list is empty if players are still in a lobby etc., no need to show a warning
return;
}