From 5e90fc1c37d257284384071720d6657ea640152b Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 30 Dec 2018 22:06:50 +0100 Subject: [PATCH] NetworkServer.SetClientReadyInternal: use bool instead of var and proper naming --- Mirror/Runtime/NetworkServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mirror/Runtime/NetworkServer.cs b/Mirror/Runtime/NetworkServer.cs index 66a20543a..0b84bbc36 100644 --- a/Mirror/Runtime/NetworkServer.cs +++ b/Mirror/Runtime/NetworkServer.cs @@ -768,8 +768,8 @@ internal static void SetClientReadyInternal(NetworkConnection conn) if (LogFilter.Debug) { Debug.Log("Sending spawn message for current server objects name='" + identity.name + "' netId=" + identity.netId); } - var vis = identity.OnCheckObserver(conn); - if (vis) + bool visible = identity.OnCheckObserver(conn); + if (visible) { identity.AddObserver(conn); }