From e66f85576e302389a08fdc85e2a67ab2dc6567ad Mon Sep 17 00:00:00 2001 From: Ayndpa Date: Wed, 19 Nov 2025 22:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BF=9E=E6=8E=A5=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=98=BE=E7=A4=BA=EF=BC=8C=E8=B0=83=E6=95=B4=E6=97=A0?= =?UTF-8?q?=E6=95=88=E7=8A=B6=E6=80=81=E7=9A=84=E8=A1=A8=E7=A4=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- online_game_tool.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/online_game_tool.cpp b/online_game_tool.cpp index 8ee9604..eaa5615 100644 --- a/online_game_tool.cpp +++ b/online_game_tool.cpp @@ -275,7 +275,7 @@ int main() auto getMemberConnectionInfo = [&](const CSteamID &memberID, const CSteamID &hostSteamID) -> std::pair { int ping = 0; - std::string relayInfo = "N/A"; + std::string relayInfo = "-"; if (steamManager.isHost()) { @@ -350,7 +350,6 @@ int main() // Poll events glfwPollEvents(); - // Run Steam callbacks SteamAPI_RunCallbacks(); // Update Steam networking info @@ -448,13 +447,13 @@ int main() { auto [ping, relayInfo] = getMemberConnectionInfo(memberID, hostSteamID); - if (relayInfo != "N/A") + if (relayInfo != "-") { ImGui::Text("%d", ping); } else { - ImGui::Text("N/A"); + ImGui::Text("-"); } ImGui::TableNextColumn(); ImGui::Text("%s", relayInfo.c_str());