From dd3ef1577ea6b78d6d58b8d8e71bdc8522f40b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sat, 13 Nov 2021 15:59:40 +0100 Subject: [PATCH] fix steam names being cut off inside utf8 codepoints --- src/engine/client/steam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/steam.cpp b/src/engine/client/steam.cpp index e4bc6d174..e7c085d4f 100644 --- a/src/engine/client/steam.cpp +++ b/src/engine/client/steam.cpp @@ -22,7 +22,7 @@ public: m_pSteamFriends = SteamAPI_SteamFriends_v017(); ReadLaunchCommandLine(); - str_copy(m_aPlayerName, SteamAPI_ISteamFriends_GetPersonaName(m_pSteamFriends), sizeof(m_aPlayerName)); + str_utf8_copy(m_aPlayerName, SteamAPI_ISteamFriends_GetPersonaName(m_pSteamFriends), sizeof(m_aPlayerName)); } ~CSteam() {