NetworkServer.SetClientReadyInternal: use bool instead of var and use proper naming

This commit is contained in:
vis2k 2018-12-30 20:33:04 +01:00
parent 3c6e2f65ad
commit fbf5994159

View File

@ -732,8 +732,8 @@ internal static void SetClientReadyInternal(NetworkConnection conn)
// in the above SetLocalPlayer call
if (identity.gameObject != null)
{
var vis = identity.OnCheckObserver(conn);
if (vis)
bool visible = identity.OnCheckObserver(conn);
if (visible)
{
identity.AddObserver(conn);
}