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

This commit is contained in:
vis2k 2018-12-30 22:06:50 +01:00
parent c87cd7b351
commit 5e90fc1c37

View File

@ -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); } if (LogFilter.Debug) { Debug.Log("Sending spawn message for current server objects name='" + identity.name + "' netId=" + identity.netId); }
var vis = identity.OnCheckObserver(conn); bool visible = identity.OnCheckObserver(conn);
if (vis) if (visible)
{ {
identity.AddObserver(conn); identity.AddObserver(conn);
} }