mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-07-28 19:25:28 +02:00
prefer udp when sending leaderboards
This commit is contained in:
parent
e31f030d55
commit
0ed6dc6808
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
if (steamid) common_msg.set_dest_id(steamid->ConvertToUint64());
|
||||||
common_msg.set_allocated_leaderboards_messages(board_msg);
|
common_msg.set_allocated_leaderboards_messages(board_msg);
|
||||||
|
|
||||||
if (steamid) network->sendTo(&common_msg, true);
|
if (steamid) network->sendTo(&common_msg, false);
|
||||||
else network->sendToAll(&common_msg, true);
|
else network->sendToAll(&common_msg, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Steam_User_Stats::request_user_leaderboard_entry(const Steam_Leaderboard &board, const CSteamID &steamid)
|
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_dest_id(steamid.ConvertToUint64());
|
||||||
common_msg.set_allocated_leaderboards_messages(board_msg);
|
common_msg.set_allocated_leaderboards_messages(board_msg);
|
||||||
|
|
||||||
network->sendTo(&common_msg, true);
|
network->sendTo(&common_msg, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue