mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-25 01:44:15 +08:00
prefer udp when sending leaderboards
This commit is contained in:
parent
e31f030d55
commit
0ed6dc6808
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user