From 0ed6dc68089e497b6e64d1ffb3b2600adb9d1606 Mon Sep 17 00:00:00 2001 From: otavepto Date: Sun, 31 Mar 2024 23:40:03 +0200 Subject: [PATCH] prefer udp when sending leaderboards --- dll/steam_user_stats.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dll/steam_user_stats.cpp b/dll/steam_user_stats.cpp index 5a8f0074..b226cedb 100644 --- a/dll/steam_user_stats.cpp +++ b/dll/steam_user_stats.cpp @@ -302,8 +302,8 @@ void Steam_User_Stats::send_my_leaderboard_score(const Steam_Leaderboard &board, if (steamid) common_msg.set_dest_id(steamid->ConvertToUint64()); common_msg.set_allocated_leaderboards_messages(board_msg); - if (steamid) network->sendTo(&common_msg, true); - else network->sendToAll(&common_msg, true); + if (steamid) network->sendTo(&common_msg, false); + else network->sendToAll(&common_msg, false); } void Steam_User_Stats::request_user_leaderboard_entry(const Steam_Leaderboard &board, const CSteamID &steamid) @@ -325,7 +325,7 @@ void Steam_User_Stats::request_user_leaderboard_entry(const Steam_Leaderboard &b common_msg.set_dest_id(steamid.ConvertToUint64()); common_msg.set_allocated_leaderboards_messages(board_msg); - network->sendTo(&common_msg, true); + network->sendTo(&common_msg, false); }