Skip to content

Commit

Permalink
Fix 'ChangeStatus'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jul 10, 2024
1 parent eabced7 commit c746460
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit c746460

Please sign in to comment.