From 6c33f8debef8ff7f756f65982cce979225bba61f Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:48:43 +0100 Subject: [PATCH] Update code format --- Fika.Core/Coop/Components/CoopHandler.cs | 2 +- Fika.Core/Coop/Factories/PingFactory.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Fika.Core/Coop/Components/CoopHandler.cs b/Fika.Core/Coop/Components/CoopHandler.cs index 3bb00610..4e77471e 100644 --- a/Fika.Core/Coop/Components/CoopHandler.cs +++ b/Fika.Core/Coop/Components/CoopHandler.cs @@ -407,7 +407,7 @@ private ObservedCoopPlayer SpawnObservedPlayer(SpawnObject spawnObject) // Check for GClass increments on filter ObservedCoopPlayer otherPlayer = ObservedCoopPlayer.CreateObservedPlayer(LocalGameInstance.GameWorld_0, netId, position, Quaternion.identity, "Player", - isAi == true ? "Bot_" : $"Player_{profile.Nickname}_", EPointOfView.ThirdPerson, profile, healthBytes, isAi, + isAi ? "Bot_" : $"Player_{profile.Nickname}_", EPointOfView.ThirdPerson, profile, healthBytes, isAi, EUpdateQueue.Update, Player.EUpdateMode.Manual, Player.EUpdateMode.Auto, BackendConfigAbstractClass.Config.CharacterController.ObservedPlayerMode, FikaGlobals.GetOtherPlayerSensitivity, FikaGlobals.GetOtherPlayerSensitivity, GClass1599.Default, firstId, firstOperationId, isZombie).Result; diff --git a/Fika.Core/Coop/Factories/PingFactory.cs b/Fika.Core/Coop/Factories/PingFactory.cs index 9d7a1d06..ede0c5b7 100644 --- a/Fika.Core/Coop/Factories/PingFactory.cs +++ b/Fika.Core/Coop/Factories/PingFactory.cs @@ -215,7 +215,7 @@ public virtual void Initialize(ref Vector3 point, Object userObject, Color pingC float distance = Mathf.Clamp(Vector3.Distance(CameraClass.Instance.Camera.transform.position, transform.position) / 100, 0.4f, 0.6f); float pingSize = FikaPlugin.PingSize.Value; Vector3 scaledSize = new(pingSize, pingSize, pingSize); - if (FikaPlugin.PingScaleWithDistance.Value == true) + if (FikaPlugin.PingScaleWithDistance.Value) { scaledSize *= distance; }