syntax & formatting

This commit is contained in:
MrGadget1024 2021-11-25 11:50:49 -05:00
parent c8d97b9063
commit 296236ff0c

View File

@ -1266,14 +1266,13 @@ public virtual void OnClientConnect(NetworkConnection conn)
// clientLoadedScene flag to prevent it.
if (!clientLoadedScene)
{
// Ready/AddPlayer is usually triggered by a scene load
// completing. if no scene was loaded, then Ready/AddPlayer it
// here instead.
if (!NetworkClient.ready) NetworkClient.Ready();
// Ready/AddPlayer is usually triggered by a scene load completing.
// if no scene was loaded, then Ready/AddPlayer it here instead.
if (!NetworkClient.ready)
NetworkClient.Ready();
if (autoCreatePlayer)
{
NetworkClient.AddPlayer();
}
}
}