From c746460f163b16b16df3ff636c0e08fe9925e60a Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:09:38 +0200 Subject: [PATCH] Fix 'ChangeStatus' --- Fika.Core/Coop/GameMode/CoopGame.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Fika.Core/Coop/GameMode/CoopGame.cs b/Fika.Core/Coop/GameMode/CoopGame.cs index 5f887274..8f084087 100644 --- a/Fika.Core/Coop/GameMode/CoopGame.cs +++ b/Fika.Core/Coop/GameMode/CoopGame.cs @@ -706,9 +706,9 @@ private IEnumerator WaitForOtherPlayers() NetDataWriter writer = new(); - FikaBackendUtils.ScreenController.ChangeStatus("Waiting for other players to finish loading..."); + FikaBackendUtils.ScreenController.ChangeStatus("Waiting for other players to finish loading...", 0); - int expectedPlayers = FikaBackendUtils.HostExpectedNumberOfPlayers; + float expectedPlayers = FikaBackendUtils.HostExpectedNumberOfPlayers; if (isServer) { @@ -737,7 +737,7 @@ private IEnumerator WaitForOtherPlayers() do { - FikaBackendUtils.ScreenController.ChangeStatus("Waiting for other players to finish loading...", server.ReadyClients / expectedPlayers); + FikaBackendUtils.ScreenController.ChangeStatus("Waiting for other players to finish loading...", (float)server.ReadyClients / expectedPlayers); yield return new WaitForEndOfFrame(); } while (server.ReadyClients < expectedPlayers); @@ -771,7 +771,7 @@ private IEnumerator WaitForOtherPlayers() do { - FikaBackendUtils.ScreenController.ChangeStatus("Waiting for other players to finish loading...", client.ReadyClients / expectedPlayers); + FikaBackendUtils.ScreenController.ChangeStatus("Waiting for other players to finish loading...", (float)client.ReadyClients / expectedPlayers); yield return new WaitForEndOfFrame(); } while (client.ReadyClients < expectedPlayers); }