From c15e671e82d3b9f32d6f39f673fcad5066bdbb4d Mon Sep 17 00:00:00 2001 From: EntenKoeniq <81123713+EntenKoeniq@users.noreply.github.com> Date: Mon, 16 Aug 2021 12:43:52 +0200 Subject: [PATCH] Update PlayerList.cs --- Client/PlayerList.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/PlayerList.cs b/Client/PlayerList.cs index feac49e..79a586a 100644 --- a/Client/PlayerList.cs +++ b/Client/PlayerList.cs @@ -52,13 +52,13 @@ namespace CoopClient LastUpdate = Environment.TickCount; MainScaleform.CallFunction("SET_DATA_SLOT_EMPTY", 0); - MainScaleform.CallFunction("SET_DATA_SLOT", 0, Main.MainNetworking.Latency + "ms", localUsername, 116, 0, 0, "", "", 2, "", "", ' '); + MainScaleform.CallFunction("SET_DATA_SLOT", 0, $"{Main.MainNetworking.Latency * 1000:N0}ms", localUsername, 116, 0, 0, "", "", 2, "", "", ' '); int i = 1; foreach (KeyValuePair player in players) { - MainScaleform.CallFunction("SET_DATA_SLOT", i++, player.Value.Latency + "ms", player.Value.Username, 116, 0, i - 1, "", "", 2, "", "", ' '); + MainScaleform.CallFunction("SET_DATA_SLOT", i++, $"{player.Value.Latency * 1000:N0}ms", player.Value.Username, 116, 0, i - 1, "", "", 2, "", "", ' '); } MainScaleform.CallFunction("SET_TITLE", "Player list", (players.Count + 1) + " players");